Add const and std::as_const
This commit is contained in:
@@ -391,7 +391,8 @@ void MoodbarProxyStyle::ShowContextMenu(const QPoint pos) {
|
||||
}
|
||||
|
||||
// Update the currently selected style
|
||||
for (QAction *action : style_action_group_->actions()) {
|
||||
const QList<QAction*> actions = style_action_group_->actions();
|
||||
for (QAction *action : actions) {
|
||||
if (static_cast<MoodbarRenderer::MoodbarStyle>(action->data().toInt()) == moodbar_style_) {
|
||||
action->setChecked(true);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user