summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-09-14 15:05:39 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-09-14 15:06:33 -0300
commit761e6a304ca0d6e89e3a5ffff62d2cf53fbc96cb (patch)
treeeca941a504b85fceef9f70c5944ead7685fe41ff /src/examples/eolian_cxx
parentfb31440f494d1810264a3c6ad408bd286dca8b76 (diff)
eolian-cxx: Fix example after disambiguation patch of C++ binding
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_simple_01.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
index 028a429..257f994 100644
--- a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
@@ -19,14 +19,16 @@ main()
19 eina_log_domain_level_set("colourable", EINA_LOG_LEVEL_DBG); 19 eina_log_domain_level_set("colourable", EINA_LOG_LEVEL_DBG);
20 eina_log_domain_level_set("colourablesquare", EINA_LOG_LEVEL_DBG); 20 eina_log_domain_level_set("colourablesquare", EINA_LOG_LEVEL_DBG);
21 21
22 using efl::eo::instantiate;
23
22 int r, g, b; 24 int r, g, b;
23 ::ns::Colourable obj1 25 ::ns::Colourable obj1
24 ([&] { obj1.rgb_24bits_constructor(0x123456); }); 26 (instantiate, [&] { obj1.rgb_24bits_constructor(0x123456); });
25 obj1.colour_set(0xc0ffee); 27 obj1.colour_set(0xc0ffee);
26 obj1.composite_colour_get(r, g, b); 28 obj1.composite_colour_get(r, g, b);
27 29
28 ::ns::ColourableSquare obj2 30 ::ns::ColourableSquare obj2
29 ([&] { obj2.size_constructor(10); }); 31 (instantiate, [&] { obj2.size_constructor(10); });
30 obj2.composite_colour_set(r, g, b); 32 obj2.composite_colour_set(r, g, b);
31 obj2.size_set(11); 33 obj2.size_set(11);
32 assert(obj1.colour_get() == obj2.colour_get()); 34 assert(obj1.colour_get() == obj2.colour_get());