From 37a117d2effc21b23b86ada80951bfd23671a64b Mon Sep 17 00:00:00 2001 From: RedsonBr140 Date: Wed, 16 Nov 2022 12:24:28 -0300 Subject: [PATCH] chore: Var definition inside the for loop Co-authored-by: flow Signed-off-by: RedsonBr140 --- launcher/ui/MainWindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index f62d97601..1f8444afa 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -1315,9 +1315,7 @@ void MainWindow::updateThemeMenu() QActionGroup* ThemesGroup = new QActionGroup( this ); - for (int i = 0; i < themes.size(); i++) - { - auto *theme = themes[i]; + for (auto* theme : themes) { QAction * themeAction = themeMenu->addAction(theme->name()); themeAction->setCheckable(true);