evas - clean if check to be a single return point for clarity
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 17 Oct 2015 02:19:06 +0000 (11:19 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 17 Oct 2015 02:19:06 +0000 (11:19 +0900)
if (a) return;
if (b) return;

->

if ((a) || (b)) return;

src/lib/evas/canvas/evas_object_main.c

index de5e83d..7ff20b8 100644 (file)
@@ -254,8 +254,7 @@ evas_object_change(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
    Eina_Bool movch = EINA_FALSE;
    Evas_Canvas3D_Texture *texture;
 
-   if (!obj->layer) return;
-   if (!obj->layer->evas) return;
+   if ((!obj->layer) || (!obj->layer->evas)) return;
    if (obj->layer->evas->nochange) return;
    obj->layer->evas->changed = EINA_TRUE;