aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-17 11:19:06 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-17 11:19:06 +0900
commit1a135fdfb1265154057c7b47041b1bea4e3207b6 (patch)
treef7da1bfb80b8376ee39e2572c464e5b8910e304b
parentecore-evas-wayland: add frame callback listener during render (diff)
downloadefl-1a135fdfb1265154057c7b47041b1bea4e3207b6.tar.gz
evas - clean if check to be a single return point for clarity
if (a) return; if (b) return; -> if ((a) || (b)) return;
-rw-r--r--src/lib/evas/canvas/evas_object_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index de5e83dbce..7ff20b89da 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -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;