diff options
author | Karthik Bhat <kv.bhat@samsung.com> | 2020-03-11 09:42:19 +0530 |
---|---|---|
committer | Karthik Bhat <kv.bhat@samsung.com> | 2020-03-11 09:42:19 +0530 |
commit | 679f894647556a10e9c4dedc6f3db4f917f5a5d3 (patch) | |
tree | 3dce6b03f321bad01d7cc763c1f083aca6c9a82e | |
parent | 71c78ebae724394ec6a1ddc4e0260a9163d91076 (diff) | |
download | call-setting-tizen_7.0.tar.gz call-setting-tizen_7.0.tar.bz2 call-setting-tizen_7.0.zip |
Fix build error with llvm-10tizen_7.0_src.m2_releasetizen_6.5_src.m2_releasetizen_6.0_src.m2_releasesubmit/tizen_6.5/20211029.123901submit/tizen_6.5/20211028.164201submit/tizen_6.0_hotfix/20201103.115105submit/tizen_6.0_hotfix/20201102.192905submit/tizen_6.0/20201029.205505submit/tizen/20200313.050222tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen
Change-Id: Ie15f6a9e6f810c99990875d94f2dbbe34efa14e3
Signed-off-by: Karthik Bhat <kv.bhat@samsung.com>
-rw-r--r-- | ucl/include/ucl/misc/MonoObservable.hpp | 4 |
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; |