mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #906, obtain .rev file name from static function instead of member
This commit is contained in:
committed by
Mathew Sutcliffe
parent
31a01d74c6
commit
ecb7877908
@@ -255,6 +255,9 @@ namespace BlackMisc
|
||||
//! The directory where core data are stored.
|
||||
static const QString &persistentStore();
|
||||
|
||||
//! Revision file name
|
||||
static const QString &revisionFileName();
|
||||
|
||||
//! Return the filename where the value with the given key may be stored.
|
||||
static QString filenameForKey(const QString &key);
|
||||
|
||||
@@ -297,9 +300,8 @@ namespace BlackMisc
|
||||
virtual void connectPage(Private::CValuePage *page) override;
|
||||
|
||||
QFileSystemWatcher m_watcher;
|
||||
const QString m_revisionFileName { CFileUtils::appendFilePaths(persistentStore(), ".rev") };
|
||||
|
||||
CDataCacheSerializer m_serializer { this, m_revisionFileName };
|
||||
CDataCacheSerializer m_serializer { this, revisionFileName() };
|
||||
CDataCacheRevision m_revision { persistentStore() + "/" };
|
||||
friend class CDataCacheSerializer; // to access m_revision and protected members of CValueCache
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user