summary refs log tree commit diff
path: root/src/MxcImageProvider.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-13 23:28:57 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-13 23:29:32 +0200
commit45ecb71444143a6f7ae8d2ae21a1b071fc708616 (patch)
treeb8c33354879575e84e4219b0eb7a4b11da740d60 /src/MxcImageProvider.cpp
parentFix (hopefully) HiDPI scaling issues with edit and encryption icons (diff)
downloadnheko-45ecb71444143a6f7ae8d2ae21a1b071fc708616.tar.xz
Qt6.6 compatibility
Diffstat (limited to '')
-rw-r--r--src/MxcImageProvider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MxcImageProvider.cpp b/src/MxcImageProvider.cpp

index 47e0344f..8f930c1a 100644 --- a/src/MxcImageProvider.cpp +++ b/src/MxcImageProvider.cpp
@@ -38,7 +38,7 @@ MxcImageProvider::MxcImageProvider() QDir::Filter::Writable | QDir::Filter::NoDotAndDotDot | QDir::Filter::Files); auto files = dir.entryInfoList(); - for (const auto &fileInfo : qAsConst(files)) { + for (const auto &fileInfo : std::as_const(files)) { if (fileInfo.fileTime(QFile::FileTime::FileAccessTime) .daysTo(QDateTime::currentDateTime()) > 30) { if (QFile::remove(fileInfo.absoluteFilePath()))