refs #664 Use timestamps from .rev file instead of the filesystem timestamps of the json files.

This commit is contained in:
Mathew Sutcliffe
2016-05-26 18:03:21 +01:00
parent 4bc8326389
commit d0d100da5e
4 changed files with 25 additions and 0 deletions

View File

@@ -102,6 +102,15 @@ namespace BlackMisc
return result.join(",");
}
void CValueCachePacket::setTimestamps(const QMap<QString, qint64> &times)
{
for (auto it = times.cbegin(); it != times.cend(); ++it)
{
if (! contains(it.key())) { continue; }
(*this)[it.key()].second = it.value();
}
}
CValueCachePacket CValueCachePacket::takeByKey(const QString &key)
{
auto copy = *this;