Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_dnd.c 


Log Message:
- use macro

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dnd.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_dnd.c   5 Sep 2006 11:44:16 -0000       1.19
+++ ewl_dnd.c   6 Sep 2006 15:37:37 -0000       1.20
@@ -132,9 +132,8 @@
        DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
 
        type = ecore_hash_get(ewl_dnd_provides_hash, w);
-       if (type) {
-               FREE(type);
-       }
+       IF_FREE(type);
+
        ecore_hash_set(ewl_dnd_provides_hash, w, ewl_dnd_types_encode(types));
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -195,11 +194,9 @@
        DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
 
        type = ecore_hash_get(ewl_dnd_accepts_hash, w);
-       if (type) {
-               FREE(type);
-       }
-       ecore_hash_set(ewl_dnd_accepts_hash, w, ewl_dnd_types_encode(types));
+       IF_FREE(type);
 
+       ecore_hash_set(ewl_dnd_accepts_hash, w, ewl_dnd_types_encode(types));
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to