diff --git a/src/log.cpp b/src/log.cpp index 75847372..200f4438 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -111,7 +111,7 @@ void updateLogDisplays(const QString &message, LogType type) { }; bool startTimer = false; - auto it = QMutableListIterator(Log::displays); + auto it = QMutableListIterator(Log::displays); while (it.hasNext()) { auto display = it.next(); if (!display.statusBar) { diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 15cb8210..cf6d226d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -240,7 +240,7 @@ void MainWindow::applyUserShortcuts() { void MainWindow::initLogStatusBar() { removeLogStatusBar(this->statusBar()); - QSet logTypes = QSet(porymapConfig.statusBarLogTypes.begin(), porymapConfig.statusBarLogTypes.end()); + auto logTypes = QSet(porymapConfig.statusBarLogTypes.begin(), porymapConfig.statusBarLogTypes.end()); if (!logTypes.isEmpty()) { addLogStatusBar(this->statusBar(), logTypes); }