summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-03-15 12:50:20 -0400
committerCedric Bail <cedric@osg.samsung.com>2018-03-20 17:20:56 -0700
commit4c4177ac207f982de8139c47c7afedd26ff9e15a (patch)
tree1913e890dc525621f4dec3ce281b340d81608a72 /src/tests/eo/function_overrides
parenta1bf513920e813037756e01cc2e01770befea77c (diff)
efl: use efl_add_ref to create objects which have no parent
Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
Diffstat (limited to 'src/tests/eo/function_overrides')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_main.c b/src/tests/eo/function_overrides/function_overrides_main.c
index 091af5ebe1..5828b1aa45 100644
--- a/src/tests/eo/function_overrides/function_overrides_main.c
+++ b/src/tests/eo/function_overrides/function_overrides_main.c
@@ -18,7 +18,7 @@ main(int argc, char *argv[])
18 efl_object_init(); 18 efl_object_init();
19 19
20 Eina_Bool called = EINA_FALSE; 20 Eina_Bool called = EINA_FALSE;
21 Eo *obj = efl_add(INHERIT2_CLASS, NULL); 21 Eo *obj = efl_add_ref(INHERIT2_CLASS, NULL);
22 22
23 simple_a_set(obj, 1); 23 simple_a_set(obj, 1);
24 Simple_Public_Data *pd = efl_data_scope_get(obj, SIMPLE_CLASS); 24 Simple_Public_Data *pd = efl_data_scope_get(obj, SIMPLE_CLASS);
@@ -26,7 +26,7 @@ main(int argc, char *argv[])
26 26
27 efl_unref(obj); 27 efl_unref(obj);
28 28
29 obj = efl_add(INHERIT3_CLASS, NULL); 29 obj = efl_add_ref(INHERIT3_CLASS, NULL);
30 30
31 simple_a_set(obj, 1); 31 simple_a_set(obj, 1);
32 pd = efl_data_scope_get(obj, SIMPLE_CLASS); 32 pd = efl_data_scope_get(obj, SIMPLE_CLASS);
@@ -34,7 +34,7 @@ main(int argc, char *argv[])
34 34
35 efl_unref(obj); 35 efl_unref(obj);
36 36
37 obj = efl_add(INHERIT2_CLASS, NULL); 37 obj = efl_add_ref(INHERIT2_CLASS, NULL);
38 called = inherit2_print(obj); 38 called = inherit2_print(obj);
39 fail_if(!called); 39 fail_if(!called);
40 called = inherit2_print(obj); 40 called = inherit2_print(obj);
@@ -42,7 +42,7 @@ main(int argc, char *argv[])
42 fail_if(!called); 42 fail_if(!called);
43 efl_unref(obj); 43 efl_unref(obj);
44 44
45 obj = efl_add(SIMPLE_CLASS, NULL); 45 obj = efl_add_ref(SIMPLE_CLASS, NULL);
46 called = inherit2_print(obj); 46 called = inherit2_print(obj);
47 fail_if(called); 47 fail_if(called);
48 48