fix Warning

This commit is contained in:
berrux-dev committed 2026-10-03 09:20:13 +02:00
1 parent 593c221d23
commit 8345470273
316 files changed
+1246 -929

No files matched your search

@@ -7,6 +7,7 @@
*/
#include "handler_aes_data.h"
#include <utility>
#include "settings.h"
#include <CentralEffectSimulation/handler_participant.h>
@@ -181,7 +182,7 @@ void HandlerAesData::onExplosionSingleChanged(const AreaEffectSimulation::Explos
// Bounding-Box-Check
// QMap<int, Footprint> m_footprints;
for (const Footprint &footprint : qAsConst(m_footprints))
for (const Footprint &footprint : std::as_const(m_footprints))
{
const QPointF impactPos(CentralEffectSimulation::geographic2Utm(data.impactPosition(), footprint.zone));
const QPolygonF polyBldgRadius({QPointF(footprint.boundingBoxPolyUtm.bottomLeft().rx() - impactRadius,
@@ -304,7 +305,7 @@ void HandlerAesData::calculateFootprint(const InfrastructureManagement::MainFoot
footprint.geoPosition = mse.geoPosition();
const QPointF utmFpPosition = CentralEffectSimulation::geographic2Utm(footprint.geoPosition, &footprint.zone);
footprint.polyUtm.reserve(poly.size());
for (const QPointF &point : qAsConst(poly))
for (const QPointF &point : std::as_const(poly))
footprint.polyUtm.push_back(utmFpPosition + point);
footprint.boundingBoxPolyUtm = footprint.polyUtm.boundingRect();
@@ -351,7 +352,7 @@ void HandlerAesData::preCalculateImpacts(const AreaEffectSimulation::TriggeredIm
}
// Bounding-Box-Check
// QMap<int, Footprint> m_footprints;
for (const Footprint &footprint : qAsConst(m_footprints))
for (const Footprint &footprint : std::as_const(m_footprints))
{
//if (boundingBoxImpact.contains(footprint.boundingBoxPolyUtm))
calculateImpacts(data, footprint);
@@ -407,7 +408,7 @@ void HandlerAesData::calculateImpacts(const AreaEffectSimulation::TriggeredImpac
BitfieldStates &bitfieldStates = m_bitfieldStatesBld[footprint.mseId];
QSet<int> &bitfieldState = bitfieldStates[data.aesItemId()];
for (int i : qAsConst(bitfieldState))
for (int i : std::as_const(bitfieldState))
DEBUG_LOG(m_logger) << "bitfieldState for " << data.aesItemId() << ": " << i;
const AreaEffectSimulation::AesItemView &aesItemView = *it;
@@ -7,6 +7,7 @@
*/
#include "handler_participant_area.h"
#include <utility>
#include "settings.h"
#include "CentralEffectSimulation/handler_participant.h"
@@ -498,7 +499,7 @@ void HandlerParticipantArea::calculateAesParticipant(const CentralEffectSimulati
return;
DEBUG_LOG(m_logger) << "HandlerParticipantArea::calculateAesParticipant paricipantId: " << participantPos.participantId();
for (const CentralEffectSimulation::AesItemViewUtm &itemView : qAsConst(m_aesItemViews))
for (const CentralEffectSimulation::AesItemViewUtm &itemView : std::as_const(m_aesItemViews))
{
DEBUG_LOG(m_logger) << " itemView: " << itemView.aesItemId << ", " << itemView.aesTypeId;
switch (itemView.aesTypeId.underlying())
@@ -837,7 +838,7 @@ void HandlerParticipantArea::onExplosionSingleCentralChanged(const AreaEffectSim
const int effectType = static_cast<int>(EffectType::ExplosionSingle) & 0xffff;
const QMap<int, BuildingModel *> buildingModels = m_handlerBuildingModel->buildingModels();
const QList<CentralEffectSimulation::HandlerParticipant::CesParticipantData> participantPositions = m_handlerParticipant->positions().values();
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &participantPosition : qAsConst(participantPositions))
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &participantPosition : std::as_const(participantPositions))
{
if (participantPosition.insideBuilding())
continue;