From e4cd9895beaba874a5e539439db95f42004705c1 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sun, 28 Sep 2025 22:16:21 +0200 Subject: [PATCH] make sonar happy --- client/adventureMap/AdventureMapWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/adventureMap/AdventureMapWidget.cpp b/client/adventureMap/AdventureMapWidget.cpp index d18a3577b..f10461126 100644 --- a/client/adventureMap/AdventureMapWidget.cpp +++ b/client/adventureMap/AdventureMapWidget.cpp @@ -297,7 +297,7 @@ std::shared_ptr AdventureMapWidget::buildResourceDateBar(const JsonN auto result = std::make_shared(image, area.topLeft()); - for (auto & i : LIBRARY->resourceTypeHandler->getAllObjects()) + for (const auto & i : LIBRARY->resourceTypeHandler->getAllObjects()) { const auto & node = input[i.toResource()->getJsonKey()]; @@ -340,7 +340,7 @@ std::shared_ptr AdventureMapWidget::buildResourceAdditional(const Js int remainingSpace = area.w; int resElementSize = 84; int fitOffset = 2; - for(auto & resource : LIBRARY->resourceTypeHandler->getAllObjects()) + for(const auto & resource : LIBRARY->resourceTypeHandler->getAllObjects()) { if(resource.getNum() < GameConstants::RESOURCE_QUANTITY) continue;