Fix several clazy issues:

* Mixing iterators with const_iterators [-Wclazy-strict-iterators]
This commit is contained in:
wmayer
2022-07-25 00:04:04 +02:00
parent 6ee2c7f865
commit 5354632bfb
3 changed files with 7 additions and 7 deletions

View File

@@ -641,7 +641,7 @@ void PrefQuantitySpinBox::contextMenuEvent(QContextMenuEvent *event)
// data structure to remember actions for values
QStringList history = d->history.asStringList();
for (QStringList::const_iterator it = history.begin();it != history.end(); ++it) {
for (QStringList::const_iterator it = history.cbegin();it != history.cend(); ++it) {
QAction* action = menu->addAction(*it);
action->setProperty("history_value", *it);
}