chore: Var definition inside the for loop

Co-authored-by: flow <flowlnlnln@gmail.com>
Signed-off-by: RedsonBr140 <redson@riseup.net>
This commit is contained in:
RedsonBr140 2022-11-16 12:24:28 -03:00 committed by GitHub
parent 6fe626ab9a
commit 37a117d2ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1315,9 +1315,7 @@ void MainWindow::updateThemeMenu()
QActionGroup* ThemesGroup = new QActionGroup( this ); QActionGroup* ThemesGroup = new QActionGroup( this );
for (int i = 0; i < themes.size(); i++) for (auto* theme : themes) {
{
auto *theme = themes[i];
QAction * themeAction = themeMenu->addAction(theme->name()); QAction * themeAction = themeMenu->addAction(theme->name());
themeAction->setCheckable(true); themeAction->setCheckable(true);