summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_container.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-11 12:24:08 +0000
committerTom Hacohen <tom@stosb.com>2016-03-11 12:29:03 +0000
commitf24210caac8d50940ddef858994571be59179c10 (patch)
treecfc8b264e77abbab9827517d1827f9a4fb4dcd50 /src/lib/evas/canvas/evas_vg_container.c
parent9fdac37187e35f45570c3808011d0283c658652d (diff)
Revert "Automatic migration to the new eo_add syntax."
This reverts commit 4f949a2757b6332306264d7f126b15ba7bfd37d4.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_container.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
index 7491c3a..7d766a5 100644
--- a/src/lib/evas/canvas/evas_vg_container.c
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -155,16 +155,14 @@ _efl_vg_container_efl_vg_base_dup(Eo *obj,
155 { 155 {
156 // By setting parent, we automatically reference 156 // By setting parent, we automatically reference
157 // this new object as a child of obj. Magic at work ! 157 // this new object as a child of obj. Magic at work !
158 Eo *tmp = NULL; 158 (void) eo_add_ref(eo_class_get(child), obj, efl_vg_dup(eoid, child));
159 eo_add_ref(&tmp, eo_class_get(child), obj, efl_vg_dup(tmp, child));
160 } 159 }
161} 160}
162 161
163EAPI Efl_VG* 162EAPI Efl_VG*
164evas_vg_container_add(Efl_VG *parent) 163evas_vg_container_add(Efl_VG *parent)
165{ 164{
166 Eo *ret = NULL; 165 return eo_add(EFL_VG_CONTAINER_CLASS, parent);
167 return eo_add(&ret, EFL_VG_CONTAINER_CLASS, parent);
168} 166}
169 167
170#include "efl_vg_container.eo.c" 168#include "efl_vg_container.eo.c"