felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=92f5383e3c983756e05bd11c7e7ad9d53a332b14
commit 92f5383e3c983756e05bd11c7e7ad9d53a332b14 Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br> Date: Tue Apr 3 17:27:05 2018 -0300 efl-cxx: Fix using efl_add_ref instead of efl_add --- src/bindings/cxx/eo_cxx/eo_cxx_interop.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh index a83688a3d9..5dac150b20 100644 --- a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh +++ b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh @@ -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); } --