From 1a135fdfb1265154057c7b47041b1bea4e3207b6 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 17 Oct 2015 11:19:06 +0900 Subject: [PATCH] evas - clean if check to be a single return point for clarity if (a) return; if (b) return; -> if ((a) || (b)) return; --- src/lib/evas/canvas/evas_object_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c index de5e83d..7ff20b8 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; -- 2.7.4