summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-09 15:47:28 +0000
committerTom Hacohen <tom@stosb.com>2016-03-09 16:09:14 +0000
commit4f949a2757b6332306264d7f126b15ba7bfd37d4 (patch)
treeec3a3aacfe34b2b3e75f3fc4d85531f6f4957c9d /src/tests/eo/function_overrides
parentdf83edaeb6b10324868f28e8f1910147ba22e5e5 (diff)
Automatic migration to the new eo_add syntax.
Diffstat (limited to 'src/tests/eo/function_overrides')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_main.c9
1 files changed, 5 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 b2aa840897..a9148ed4ef 100644
--- a/src/tests/eo/function_overrides/function_overrides_main.c
+++ b/src/tests/eo/function_overrides/function_overrides_main.c
@@ -18,7 +18,8 @@ main(int argc, char *argv[])
18 eo_init(); 18 eo_init();
19 19
20 Eina_Bool called = EINA_FALSE; 20 Eina_Bool called = EINA_FALSE;
21 Eo *obj = eo_add(INHERIT2_CLASS, NULL); 21 Eo *obj = NULL;
22 eo_add(&obj, INHERIT2_CLASS, NULL);
22 23
23 simple_a_set(obj, 1); 24 simple_a_set(obj, 1);
24 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS); 25 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS);
@@ -26,7 +27,7 @@ main(int argc, char *argv[])
26 27
27 eo_unref(obj); 28 eo_unref(obj);
28 29
29 obj = eo_add(INHERIT3_CLASS, NULL); 30 eo_add(&obj, INHERIT3_CLASS, NULL);
30 31
31 simple_a_set(obj, 1); 32 simple_a_set(obj, 1);
32 pd = eo_data_scope_get(obj, SIMPLE_CLASS); 33 pd = eo_data_scope_get(obj, SIMPLE_CLASS);
@@ -34,7 +35,7 @@ main(int argc, char *argv[])
34 35
35 eo_unref(obj); 36 eo_unref(obj);
36 37
37 obj = eo_add(INHERIT2_CLASS, NULL); 38 eo_add(&obj, INHERIT2_CLASS, NULL);
38 called = inherit2_print(obj); 39 called = inherit2_print(obj);
39 fail_if(!called); 40 fail_if(!called);
40 called = inherit2_print(obj); 41 called = inherit2_print(obj);
@@ -42,7 +43,7 @@ main(int argc, char *argv[])
42 fail_if(!called); 43 fail_if(!called);
43 eo_unref(obj); 44 eo_unref(obj);
44 45
45 obj = eo_add(SIMPLE_CLASS, NULL); 46 eo_add(&obj, SIMPLE_CLASS, NULL);
46 called = inherit2_print(obj); 47 called = inherit2_print(obj);
47 fail_if(called); 48 fail_if(called);
48 49