aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eina_cxx/eina_cxx_test_accessor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eina_cxx/eina_cxx_test_accessor.cc')
-rw-r--r--src/tests/eina_cxx/eina_cxx_test_accessor.cc26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/tests/eina_cxx/eina_cxx_test_accessor.cc b/src/tests/eina_cxx/eina_cxx_test_accessor.cc
index 39b85f0ded..bec61f6cea 100644
--- a/src/tests/eina_cxx/eina_cxx_test_accessor.cc
+++ b/src/tests/eina_cxx/eina_cxx_test_accessor.cc
@@ -46,10 +46,15 @@ START_TEST(eina_cxx_eo_accessor_indexing)
efl::eina::list<wrapper> list;
- wrapper const w1(eo_add(MY_CLASS, NULL));
- wrapper const w2(eo_add(MY_CLASS, NULL));
- wrapper const w3(eo_add(MY_CLASS, NULL));
- wrapper const w4(eo_add(MY_CLASS, NULL));
+ Eo* o;
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w1(o);
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w2(o);
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w3(o);
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w4(o);
list.push_back(w1);
list.push_back(w2);
@@ -100,10 +105,15 @@ START_TEST(eina_cxx_eo_accessor_iterator)
efl::eina::list<wrapper> list;
- wrapper const w1(eo_add(MY_CLASS, NULL));
- wrapper const w2(eo_add(MY_CLASS, NULL));
- wrapper const w3(eo_add(MY_CLASS, NULL));
- wrapper const w4(eo_add(MY_CLASS, NULL));
+ Eo* o;
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w1(o);
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w2(o);
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w3(o);
+ eo_add(o, MY_CLASS, NULL)
+ wrapper const w4(o);
list.push_back(w1);
list.push_back(w2);