From a132972f274c980ff01f207f22c08f118a9efc8c Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 25 Jun 2016 15:25:25 +0200 Subject: [PATCH] Fixed index/property order --- src/blackmisc/valuecache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }