From 1355e765e17050a4a76bfe285dbe46be527ed94e Mon Sep 17 00:00:00 2001 From: EndrII Date: Wed, 30 Nov 2022 22:21:50 +0300 Subject: [PATCH] ref #58 fix build on qt5 --- src/public/packagemanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/public/packagemanager.cpp b/src/public/packagemanager.cpp index 5946c1fd..a43990ef 100644 --- a/src/public/packagemanager.cpp +++ b/src/public/packagemanager.cpp @@ -50,7 +50,11 @@ void PackageManager::processed(const Package &pkg, char processResult) { QMutexLocker lock(&_processMutex); if (_parseResults.size() > PACKAGE_CACHE_SIZE) { +#if QT_VERSION <= QT_VERSION_CHECK(6, 0, 0) + _processTime.erase(_processTime.begin()); +#else _processTime.erase(_processTime.cbegin()); +#endif } _parseResults.insert(pkg.hdr.hash, new PackaData {