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:
parent
6fe626ab9a
commit
37a117d2ef
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user