Skip to content

Commit

Permalink
ref #58 fix build on qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
EndrII committed Nov 30, 2022
1 parent 6df1b17 commit 1355e76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/public/packagemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1355e76

Please sign in to comment.