From 29e9b18433b82ff5fa6b917242e1c23e5bfc5433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Fri, 3 May 2024 17:09:57 +0100 Subject: [PATCH] Drop qAsConst Prefer C++17 std::as_const(). The one that got away! --- src/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 479d037b..de960d4a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -16,6 +16,8 @@ * along with this program. If not, see . * ***************************************************************************/ +#include + #include #include #include @@ -537,7 +539,7 @@ void MainWindow::setupCustomDirs() dirs.removeDuplicates(); // QStandardPaths::locateAll() produces duplicates - for (const QString& dir : qAsConst(dirs)) { + for (const QString& dir : std::as_const(dirs)) { TermWidgetImpl::addCustomColorSchemeDir(dir + QLatin1String("/color-schemes")); } // FIXME: To be deprecated and then removed