summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-03-09 15:46:19 -0300
committerVitor Sousa <vitorsousasilva@gmail.com>2016-03-09 15:46:19 -0300
commit48f62ad686d11c97ec62b1ba528262edf39cafbf (patch)
treea00ca3c622b01df549db52dfe841ddc799b67773 /src/lib/eolian_cxx
parentd2fba6c5959f82f35984167131d3b67207780f48 (diff)
cxx: Migrate C++ binding to the new eo_add syntax
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh b/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
index 2a7091ad02..9fde23aa92 100644
--- a/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
+++ b/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
@@ -577,13 +577,14 @@ operator<<(std::ostream& out, function_call_constructor_methods const& x)
577 577
578 out << ")" << endl 578 out << ")" << endl
579 << tab(1) << "{" << endl 579 << tab(1) << "{" << endl
580 << tab(2) << "Eo* _ret_eo = eo_add_ref(" << x._cls.eo_name << ", _p._eo_raw"; 580 << tab(2) << "Eo* _ret_eo = nullptr;" << endl
581 << tab(2) << "eo_add_ref(&_ret_eo, " << x._cls.eo_name << ", _p._eo_raw";
581 for (it = first; it != last; ++it) 582 for (it = first; it != last; ++it)
582 { 583 {
583 out << ", _c" << (it-first) << "(eoid)"; 584 out << ", _c" << (it-first) << "(_ret_eo)";
584 } 585 }
585 if (!x._cls.optional_constructors.empty()) 586 if (!x._cls.optional_constructors.empty())
586 out << ", ::efl::eolian::call_ctors(eoid, _opts...)"; 587 out << ", ::efl::eolian::call_ctors(_ret_eo, _opts...)";
587 out << ");" << endl << endl; 588 out << ");" << endl << endl;
588 589
589 for (it = first; it != last; ++it) 590 for (it = first; it != last; ++it)