summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-08-17 20:53:56 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-08-17 20:54:27 -0300
commit16986ffc7aded1e8baf1eb36227d425cc30d8f03 (patch)
tree33e6309193ee9204ac72a8528ea22fcfae50f3d8 /src/examples/eolian_cxx
parent7828d0e0720cee1fb3098bba50f718796de64989 (diff)
eolian_cxx: Fix behavior with explicit void return
Only perform the single value/return type substitution on properties if the void return type is implicit (i.e. NULL return from function_return_type_get), following the eolian-C implementation as we use the generated headers. Also update example after Eo-Efl changes.
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/colourable_cxx.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/eolian_cxx/colourable_cxx.cc b/src/examples/eolian_cxx/colourable_cxx.cc
index 30f1bb3..66c0d89 100644
--- a/src/examples/eolian_cxx/colourable_cxx.cc
+++ b/src/examples/eolian_cxx/colourable_cxx.cc
@@ -24,14 +24,14 @@ _colourable_eo_base_constructor(Eo *obj, Colourable_Data *self)
24{ 24{
25 EINA_CXX_DOM_LOG_DBG(domain) << __func__ << std::endl; 25 EINA_CXX_DOM_LOG_DBG(domain) << __func__ << std::endl;
26 self->r = self->g = self->b = 0; 26 self->r = self->g = self->b = 0;
27 return eo_constructor(eo_super(obj, MY_CLASS)); 27 return efl_constructor(efl_super(obj, MY_CLASS));
28} 28}
29 29
30void 30void
31_colourable_eo_base_destructor(Eo *obj, Colourable_Data *self EINA_UNUSED) 31_colourable_eo_base_destructor(Eo *obj, Colourable_Data *self EINA_UNUSED)
32{ 32{
33 EINA_CXX_DOM_LOG_DBG(domain) << __func__ << std::endl; 33 EINA_CXX_DOM_LOG_DBG(domain) << __func__ << std::endl;
34 eo_destructor(eo_super(obj, MY_CLASS)); 34 efl_destructor(efl_super(obj, MY_CLASS));
35} 35}
36 36
37void 37void