summaryrefslogtreecommitdiff
path: root/src/lib
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
parentbe8605dc44de90227c33efd240e1895b1169047b (diff)
downloadefl-72c623603830557b9582774e5e9575629036007d.tar.gz
Revert "cxx: Migrate C++ binding to the new eo_add syntax"
This reverts commit 48f62ad686d11c97ec62b1ba528262edf39cafbf.
Diffstat (limited to 'src/lib')
-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)
out << ")" << endl
<< tab(1) << "{" << endl
- << tab(2) << "Eo* _ret_eo = nullptr;" << endl
- << tab(2) << "eo_add_ref(&_ret_eo, " << x._cls.eo_name << ", _p._eo_raw";
+ << tab(2) << "Eo* _ret_eo = eo_add_ref(" << x._cls.eo_name << ", _p._eo_raw";
for (it = first; it != last; ++it)
{
- out << ", _c" << (it-first) << "(_ret_eo)";
+ out << ", _c" << (it-first) << "(eoid)";
}
if (!x._cls.optional_constructors.empty())
- out << ", ::efl::eolian::call_ctors(_ret_eo, _opts...)";
+ out << ", ::efl::eolian::call_ctors(eoid, _opts...)";
out << ");" << endl << endl;
for (it = first; it != last; ++it)