diff --git a/libosmscout-client-qt/src/osmscoutclientqt/TileCache.cpp b/libosmscout-client-qt/src/osmscoutclientqt/TileCache.cpp index e53e4170b..efbfbbfcf 100644 --- a/libosmscout-client-qt/src/osmscoutclientqt/TileCache.cpp +++ b/libosmscout-client-qt/src/osmscoutclientqt/TileCache.cpp @@ -224,7 +224,7 @@ void TileCache::cleanupCache(uint32_t maxRemove, const std::chrono::milliseconds #endif uint32_t removed = 0; - std::chrono::steady_clock::duration oldest; + auto oldest=std::chrono::steady_clock::duration::zero(); TileCacheKey key; TileCacheKey oldestKey; auto now = std::chrono::steady_clock::now();