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