forked from enlightenment/efl
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.
This commit is contained in:
parent
8c991b104c
commit
88e10da36b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue