summaryrefslogtreecommitdiff
path: root/src/lib/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/lib/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/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index 0c5d82056d..cafb56d99b 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -424,7 +424,7 @@ struct function_def
424 values.push_back(&*param_iterator); 424 values.push_back(&*param_iterator);
425 } 425 }
426 426
427 if(type == EOLIAN_PROP_GET && values.size() == 1 && return_type == void_) 427 if(!r_type && type == EOLIAN_PROP_GET && values.size() == 1)
428 { 428 {
429 return_type = values[0].type; 429 return_type = values[0].type;
430 } 430 }