mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-06 09:16:30 +08:00
refs #664 Use timestamps from .rev file instead of the filesystem timestamps of the json files.
This commit is contained in:
@@ -102,6 +102,15 @@ namespace BlackMisc
|
||||
return result.join(",");
|
||||
}
|
||||
|
||||
void CValueCachePacket::setTimestamps(const QMap<QString, qint64> ×)
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user