forked from enlightenment/efl
efl-cxx: Fix using efl_add_ref instead of efl_add
This commit is contained in:
parent
af80ec3716
commit
92f5383e3c
|
@ -836,7 +836,7 @@ inline void do_eo_add(Eo*& object, P const& parent
|
|||
, Efl_Class const* klass
|
||||
, typename std::enable_if< eo::is_eolian_object<P>::value>::type* = 0)
|
||||
{
|
||||
bool is_ref = (parent._eo_ptr() != nullptr);
|
||||
bool const is_ref = true;
|
||||
object = ::_efl_add_internal_start(__FILE__, __LINE__, klass, parent._eo_ptr(), is_ref, EINA_FALSE);
|
||||
object = ::_efl_add_end(object, is_ref, EINA_FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue