summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthik Bhat <kv.bhat@samsung.com>2020-03-11 09:42:19 +0530
committerKarthik Bhat <kv.bhat@samsung.com>2020-03-11 09:42:19 +0530
commit679f894647556a10e9c4dedc6f3db4f917f5a5d3 (patch)
tree3dce6b03f321bad01d7cc763c1f083aca6c9a82e
parent71c78ebae724394ec6a1ddc4e0260a9163d91076 (diff)
downloadcall-setting-tizen_7.0.tar.gz
call-setting-tizen_7.0.tar.bz2
call-setting-tizen_7.0.zip
Change-Id: Ie15f6a9e6f810c99990875d94f2dbbe34efa14e3 Signed-off-by: Karthik Bhat <kv.bhat@samsung.com>
-rw-r--r--ucl/include/ucl/misc/MonoObservable.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucl/include/ucl/misc/MonoObservable.hpp b/ucl/include/ucl/misc/MonoObservable.hpp
index 1be4a6b..c32e5bb 100644
--- a/ucl/include/ucl/misc/MonoObservable.hpp
+++ b/ucl/include/ucl/misc/MonoObservable.hpp
@@ -86,8 +86,8 @@ namespace ucl {
{
if (!(value == m_value)) {
m_value = std::move(value);
- if (m_onValueChanged) {
- m_onValueChanged();
+ if (const auto handler = m_onValueChanged.lock()) {
+ handler();
}
}
return *this;