savio pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=eea43ec1441fea198da61eda75c5714956a20524
commit eea43ec1441fea198da61eda75c5714956a20524 Author: Savio Sena <[email protected]> Date: Mon Sep 15 18:53:27 2014 -0300 eo-cxx: Added _reset() to efl::eo::base. --- src/bindings/eo_cxx/eo_base.hh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bindings/eo_cxx/eo_base.hh b/src/bindings/eo_cxx/eo_base.hh index 70052d0..015fd51 100644 --- a/src/bindings/eo_cxx/eo_base.hh +++ b/src/bindings/eo_cxx/eo_base.hh @@ -105,7 +105,16 @@ struct base _eo_raw = nullptr; return tmp; } - + + /// @brief Reset the current pointer to reference a new Eo object. + /// + void _reset(Eo* _ptr = nullptr) + { + if(_eo_raw) + detail::unref(_eo_raw); + _eo_raw = _ptr; + } + /// @brief Get the reference count of this object. /// /// @return The referencer count of this object. --
