Skip to content

Commit

Permalink
Use const iterators instead
Browse files Browse the repository at this point in the history
  • Loading branch information
xorz57 committed Mar 5, 2024
1 parent 955491b commit cf496e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <QTextStream>

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());
}

Expand Down

0 comments on commit cf496e6

Please sign in to comment.