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

@@ -8,6 +8,7 @@
*/
#include "handler_effect_area.h"
#include <utility>
#include "handler_main_structure_element.h"
#include "handler_mounting_point_asset.h"
#include "object_main_structure_element.h"
@@ -41,7 +42,7 @@ HandlerEffectArea::~HandlerEffectArea()
bool HandlerEffectArea::init()
{
const QHash<int, ObjectMainStructureElement *> &objMseMap = m_mainHandler->getHandlerMainStructureElement()->getMainStructureElementsMap();
for (const auto &objMse : qAsConst(objMseMap))
for (const auto &objMse : std::as_const(objMseMap))
{
ObjectEffectArea *effectAreaObj = createEffectAreaForMse(objMse->getData());
if (effectAreaObj)
@@ -51,7 +52,7 @@ bool HandlerEffectArea::init()
if (m_logger.isDebugEnabled())
{
DEBUG_LOG(m_logger) << "number of EffectAreas: " << m_objectEffectAreaMap.size();
for (const auto &EffectAreaObj : qAsConst(m_objectEffectAreaMap))
for (const auto &EffectAreaObj : std::as_const(m_objectEffectAreaMap))
DEBUG_LOG(m_logger) << "EffectArea ID: " << EffectAreaObj->getId()
<< " | area EGCU ID: " << EffectAreaObj->getAreaEgcuId();
}
@@ -128,7 +129,7 @@ std::vector<int32_t> HandlerEffectArea::egcuIdsFromJsonObject(const QJsonObject
const QJsonArray &egcuMountPoints = jsonObj.value(QStringLiteral("egcuMountpoints")).toArray(); // qAsConst does not work with r-value
DEBUG_LOG(m_logger) << "egcuMountPoints.size=" << egcuMountPoints.size();
for (const auto &egcuMountPnt : qAsConst(egcuMountPoints))
for (const auto &egcuMountPnt : std::as_const(egcuMountPoints))
{
QJsonObject element = egcuMountPnt.toObject();
int mountingPointId = element.value(QStringLiteral("id")).toInt();