raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1a135fdfb1265154057c7b47041b1bea4e3207b6

commit 1a135fdfb1265154057c7b47041b1bea4e3207b6
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Oct 17 11:19:06 2015 +0900

    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;
 

-- 


Reply via email to