eolian-cxx: Replace old eo_add with eo_add_ref.

eo_add_ref behaves like the old eo_add.
This commit is contained in:
Savio Sena 2014-09-26 18:55:04 -03:00
parent 4d54525d47
commit e9e2344982
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ isa(const Eo *obj, const Eo_Class *klass)
inline Eo*
add(const Eo_Class *klass, Eo *parent = NULL)
{
Eo *eo = eo_add(klass, parent);
Eo *eo = eo_add_ref(klass, parent);
return eo;
}

View File

@ -214,7 +214,7 @@ operator<<(std::ostream& out, eo_class_constructors const& x)
<< (*callback_iter).name << "));"
<< endl;
}
out << tab(2) << "return eo_add("
out << tab(2) << "return eo_add_ref("
<< x._cls.eo_name << ", _p._eo_raw, " << (*it).name
<< "(" << parameters_list((*it).params) << "));" << endl
<< tab(1) << "}" << endl << endl;