actor: Use an explicit check for NULL
Follow the coding style, and don't use the implicit C boolean equivalence for NULL pointers.
This commit is contained in:
parent
3b72fdb20c
commit
3f27afde24
@ -5084,7 +5084,7 @@ clutter_actor_queue_redraw (ClutterActor *self)
|
|||||||
|
|
||||||
/* Ignore queuing a redraw for actors not descended from a stage */
|
/* Ignore queuing a redraw for actors not descended from a stage */
|
||||||
stage = _clutter_actor_get_stage_internal (self);
|
stage = _clutter_actor_get_stage_internal (self);
|
||||||
if (!stage)
|
if (stage == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
self->priv->queue_redraw_entry =
|
self->priv->queue_redraw_entry =
|
||||||
@ -5209,7 +5209,7 @@ _clutter_actor_queue_redraw_with_clip (ClutterActor *self,
|
|||||||
|
|
||||||
/* Ignore queuing a redraw for actors not descended from a stage */
|
/* Ignore queuing a redraw for actors not descended from a stage */
|
||||||
stage = _clutter_actor_get_stage_internal (self);
|
stage = _clutter_actor_get_stage_internal (self);
|
||||||
if (!stage)
|
if (stage == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_clutter_stage_queue_actor_redraw (CLUTTER_STAGE (stage),
|
_clutter_stage_queue_actor_redraw (CLUTTER_STAGE (stage),
|
||||||
|
Loading…
Reference in New Issue
Block a user