From ff241f9f85fff2e2ffee6c3f3f261120fdb6635a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Fri, 3 May 2024 18:23:10 +0100 Subject: [PATCH] Drop qAsConst (#1119) 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