Qt6.6 compatibility

This commit is contained in:
Nicolas Werner 2023-10-13 23:28:57 +02:00
parent 4ec463bee2
commit 45ecb71444
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
16 changed files with 32 additions and 32 deletions

View file

@ -302,7 +302,7 @@ Cache::setup()
QDir stateDir(cacheDirectory_);
auto eList = stateDir.entryList(QDir::NoDotAndDotDot);
for (const auto &file : qAsConst(eList)) {
for (const auto &file : std::as_const(eList)) {
if (!stateDir.remove(file))
throw std::runtime_error(("Unable to delete file " + file).toStdString().c_str());
}