summaryrefslogtreecommitdiff
path: root/src/bindings/cxx/eo_cxx/eo_wref.hh
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-02 17:59:17 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 09:57:24 +0900
commit88e10da36b00291b399c2d9bfe5f266a44a40f6f (patch)
treeadcf75498d6ee5f398245fc673a391b1e8f1e111 /src/bindings/cxx/eo_cxx/eo_wref.hh
parent8c991b104ce23152eeab7132bee3c3ae78fef4c4 (diff)
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.
Diffstat (limited to 'src/bindings/cxx/eo_cxx/eo_wref.hh')
-rw-r--r--src/bindings/cxx/eo_cxx/eo_wref.hh2
1 files changed, 1 insertions, 1 deletions
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
79 /// strong reference to the <em>EO Object</em>. Otherwise it returns 79 /// strong reference to the <em>EO Object</em>. Otherwise it returns
80 /// an empty eina::optional. 80 /// an empty eina::optional.
81 /// 81 ///
82 eina::optional<T> lock() 82 eina::optional<T> lock() const
83 { 83 {
84 if(_eo_wref) // XXX eo_ref() should work on multi-threaded environments 84 if(_eo_wref) // XXX eo_ref() should work on multi-threaded environments
85 { 85 {