forked from enlightenment/efl
eolian-cxx: Replace old eo_add with eo_add_ref.
eo_add_ref behaves like the old eo_add.
This commit is contained in:
parent
4d54525d47
commit
e9e2344982
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue