From 45ecb71444143a6f7ae8d2ae21a1b071fc708616 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 13 Oct 2023 23:28:57 +0200 Subject: Qt6.6 compatibility --- src/Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Cache.cpp') diff --git a/src/Cache.cpp b/src/Cache.cpp index 0426f38a..cb5dc9c8 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -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()); } -- cgit 1.5.1