jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=88e10da36b00291b399c2d9bfe5f266a44a40f6f
commit 88e10da36b00291b399c2d9bfe5f266a44a40f6f Author: Jean-Philippe Andre <[email protected]> Date: Thu Nov 2 17:59:17 2017 +0900 cxx: Mark wref::lock as const This allows passing in wref to a lambda. If we passed normal refs, we would end up with dangling references and many ERR messages. --- src/bindings/cxx/eo_cxx/eo_wref.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/cxx/eo_cxx/eo_wref.hh b/src/bindings/cxx/eo_cxx/eo_wref.hh index 048ffcaa0f..e0f9c7bf82 100644 --- a/src/bindings/cxx/eo_cxx/eo_wref.hh +++ b/src/bindings/cxx/eo_cxx/eo_wref.hh @@ -79,7 +79,7 @@ struct wref /// strong reference to the <em>EO Object</em>. Otherwise it returns /// an empty eina::optional. /// - eina::optional<T> lock() + eina::optional<T> lock() const { if(_eo_wref) // XXX eo_ref() should work on multi-threaded environments { --
