diff --git a/src/blackmisc/valuecache.h b/src/blackmisc/valuecache.h index 99eaea01d..11dfdc43b 100644 --- a/src/blackmisc/valuecache.h +++ b/src/blackmisc/valuecache.h @@ -353,10 +353,10 @@ namespace BlackMisc CStatusMessage save() { return m_page.setValue(m_element, {}, 0, true, true); } //! Write a property of the value. Must be called from the thread in which the owner lives. - CStatusMessage setProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(value, index); return set(v, timestamp); } + CStatusMessage setProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(index, value); return set(v, timestamp); } //! Write a property and save in the same step. Must be called from the thread in which the owner lives. - CStatusMessage setAndSaveProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(value, index); return setAndSave(v, timestamp); } + CStatusMessage setAndSaveProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(index, value); return setAndSave(v, timestamp); } //! Is current thread the owner thread, so CCached::set is safe bool isOwnerThread() const { return QThread::currentThread() == m_page.thread(); }