1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00

make sonar happy

This commit is contained in:
Laserlicht
2025-09-28 22:16:21 +02:00
parent 08116b13de
commit e4cd9895be

View File

@@ -297,7 +297,7 @@ std::shared_ptr<CIntObject> AdventureMapWidget::buildResourceDateBar(const JsonN
auto result = std::make_shared<CResDataBar>(image, area.topLeft()); auto result = std::make_shared<CResDataBar>(image, area.topLeft());
for (auto & i : LIBRARY->resourceTypeHandler->getAllObjects()) for (const auto & i : LIBRARY->resourceTypeHandler->getAllObjects())
{ {
const auto & node = input[i.toResource()->getJsonKey()]; const auto & node = input[i.toResource()->getJsonKey()];
@@ -340,7 +340,7 @@ std::shared_ptr<CIntObject> AdventureMapWidget::buildResourceAdditional(const Js
int remainingSpace = area.w; int remainingSpace = area.w;
int resElementSize = 84; int resElementSize = 84;
int fitOffset = 2; int fitOffset = 2;
for(auto & resource : LIBRARY->resourceTypeHandler->getAllObjects()) for(const auto & resource : LIBRARY->resourceTypeHandler->getAllObjects())
{ {
if(resource.getNum() < GameConstants::RESOURCE_QUANTITY) if(resource.getNum() < GameConstants::RESOURCE_QUANTITY)
continue; continue;