refs #659 Fixed minor mistakes.

This commit is contained in:
Mathew Sutcliffe
2016-06-05 16:22:17 +01:00
parent 36cb07cb1f
commit a2b0602c53
2 changed files with 9 additions and 2 deletions

View File

@@ -306,8 +306,15 @@ namespace BlackMisc
return CCached<typename Trait::type>::set(value, timestamp);
}
//! \copydoc BlackMisc::CCached::setProperty
CStatusMessage setProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0)
{
CDataCache::instance()->admitValue(Trait::key(), false);
return CCached<typename Trait::type>::setProperty(index, value, timestamp);
}
//! Reset the data to its default value.
void setDefault() { this->set(Trait::defaultValue()); }
CStatusMessage setDefault() { return this->set(Trait::defaultValue()); }
//! Return the file that is used for persistence for this value.
QString getFilename() const { return CDataCache::filenameForKey(this->getKey()); }

View File

@@ -80,7 +80,7 @@ namespace BlackMisc
{}
//! Reset the setting to its default value.
void setDefault() { this->set(Trait::defaultValue()); }
CStatusMessage setDefault() { return this->set(Trait::defaultValue()); }
//! Return the file that is used for persistence for this value.
QString getFilename() const { return CSettingsCache::filenameForKey(this->getKey()); }