diff options
author | RedsonBr140 <redson@riseup.net> | 2022-11-16 12:24:28 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 12:24:28 -0300 |
commit | 37a117d2effc21b23b86ada80951bfd23671a64b (patch) | |
tree | 3fbda885b88a9549fc7dd65697cf9100d8e06ede | |
parent | 6fe626ab9ad9f76b793f09ceb5e8e8cced3f15ba (diff) | |
download | PrismLauncher-37a117d2effc21b23b86ada80951bfd23671a64b.tar.gz PrismLauncher-37a117d2effc21b23b86ada80951bfd23671a64b.tar.bz2 PrismLauncher-37a117d2effc21b23b86ada80951bfd23671a64b.zip |
chore: Var definition inside the for loop
Co-authored-by: flow <flowlnlnln@gmail.com>
Signed-off-by: RedsonBr140 <redson@riseup.net>
-rw-r--r-- | launcher/ui/MainWindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index f62d9760..1f8444af 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); |