Tweaked TO_EVAS_OBJECT() calls.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 29 Aug 2004 15:38:46 +0000 (15:38 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 29 Aug 2004 15:38:46 +0000 (15:38 +0000)
When we call TO_EVAS_OBJECT() don't check for a NULL pointer as
TO_EVAS_OBJECT() already does.

src/rb_evas_object.c

index f29114fe995fe6e3421ad467cd43bdb083b8935e..4579de661f78e6901b64c07d5f2d9988b7a0b215 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_evas_object.c 68 2004-08-16 15:42:19Z tilman $
+ * $Id: rb_evas_object.c 104 2004-08-29 15:38:46Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -438,10 +438,7 @@ static VALUE c_above_get (VALUE self)
 
        GET_OBJ (self, RbEvasObject, e);
 
-       if (!(o = evas_object_above_get (e->real)))
-               return Qnil;
-
-       return TO_EVAS_OBJECT (o);
+       return TO_EVAS_OBJECT (evas_object_above_get (e->real));
 }
 
 /*
@@ -457,10 +454,7 @@ static VALUE c_below_get (VALUE self)
 
        GET_OBJ (self, RbEvasObject, e);
 
-       if (!(o = evas_object_below_get (e->real)))
-               return Qnil;
-
-       return TO_EVAS_OBJECT (o);
+       return TO_EVAS_OBJECT (evas_object_below_get (e->real));
 }
 
 void Init_EvasObject (void)