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_gas_pipe.h"
#include <utility>
#include "object_gas_pipe.h"
#include <QtCore/QTimer>
#include "Utils/polygons.h"
@@ -50,13 +51,13 @@ bool HandlerGasPipe::init()
// contains all segments of an gasPipe in ascending order
QVector<Database::AesGasPipeSegment> dbGasPipeSegments;
for (const Database::AesGasPipe &dbGasPipe : qAsConst(gasPipeVec))
for (const Database::AesGasPipe &dbGasPipe : std::as_const(gasPipeVec))
{
if (dbGasPipe.effectStateId == AesEffectState::EsRemoved)
continue;
dbGasPipeSegments.clear();
for (const Database::AesGasPipeSegment &segment : qAsConst(segmentVec))
for (const Database::AesGasPipeSegment &segment : std::as_const(segmentVec))
{
if (segment.gasPipeId == dbGasPipe.privGasPipeId)
dbGasPipeSegments.insert(segment.positionIndex, segment);