From cf496e6f483cb69a641b7985cb993675064c2276 Mon Sep 17 00:00:00 2001 From: George Fotopoulos Date: Wed, 6 Mar 2024 00:38:14 +0200 Subject: [PATCH] Use const iterators instead --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 15c112d..935a3bd 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5,7 +5,7 @@ #include MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { - for (auto it = lookUpTable1.begin(); it != lookUpTable1.end(); ++it) { + for (auto it = lookUpTable1.constBegin(); it != lookUpTable1.constEnd(); ++it) { lookUpTable2.insert(it.value(), it.key()); }