Fix several clazy issues:

* C++11 range-loop might detach Qt container [-Wclazy-range-loop-detach]
This commit is contained in:
wmayer
2022-07-24 23:48:37 +02:00
parent 0bef4e82f2
commit 6ee2c7f865
17 changed files with 63 additions and 36 deletions

View File

@@ -2582,7 +2582,8 @@ void ViewProviderLink::_setupContextMenu(
|| (ext->getLinkPlacementProperty() && !ext->getLinkPlacementProperty()->isReadOnly()))
{
bool found = false;
for(auto action : menu->actions()) {
const auto actions = menu->actions();
for(auto action : actions) {
if(action->data().toInt() == ViewProvider::Transform) {
found = true;
break;
@@ -2598,7 +2599,8 @@ void ViewProviderLink::_setupContextMenu(
if(ext->getColoredElementsProperty()) {
bool found = false;
for(auto action : menu->actions()) {
const auto actions = menu->actions();
for(auto action : actions) {
if(action->data().toInt() == ViewProvider::Color) {
action->setText(QObject::tr("Override colors..."));
found = true;