summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-11 12:28:51 +0000
committerTom Hacohen <tom@stosb.com>2016-03-11 12:29:03 +0000
commit72c623603830557b9582774e5e9575629036007d (patch)
treed81322293328f9b328fac1908d8eac3c61cecaf0 /src/lib/eolian_cxx
parentbe8605dc44de90227c33efd240e1895b1169047b (diff)
Revert "cxx: Migrate C++ binding to the new eo_add syntax"
This reverts commit 48f62ad686d11c97ec62b1ba528262edf39cafbf.
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh7
1 files changed, 3 insertions, 4 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 9fde23aa92..2a7091ad02 100644
--- a/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
+++ b/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
@@ -577,14 +577,13 @@ 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 = nullptr;" << endl 580 << tab(2) << "Eo* _ret_eo = eo_add_ref(" << x._cls.eo_name << ", _p._eo_raw";
581 << tab(2) << "eo_add_ref(&_ret_eo, " << x._cls.eo_name << ", _p._eo_raw";
582 for (it = first; it != last; ++it) 581 for (it = first; it != last; ++it)
583 { 582 {
584 out << ", _c" << (it-first) << "(_ret_eo)"; 583 out << ", _c" << (it-first) << "(eoid)";
585 } 584 }
586 if (!x._cls.optional_constructors.empty()) 585 if (!x._cls.optional_constructors.empty())
587 out << ", ::efl::eolian::call_ctors(_ret_eo, _opts...)"; 586 out << ", ::efl::eolian::call_ctors(eoid, _opts...)";
588 out << ");" << endl << endl; 587 out << ");" << endl << endl;
589 588
590 for (it = first; it != last; ++it) 589 for (it = first; it != last; ++it)