fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+2
-1
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "handler_oc_aes_data.h"
|
||||
#include <utility>
|
||||
|
||||
#include <LtsUtilsCore/qbytearray_byteaccess.h>
|
||||
|
||||
@@ -177,7 +178,7 @@ void HandlerOcAesData::handleDangerAreas(const QByteArray &data, size_t pos)
|
||||
m_aesFtc->dangerAreaModifyRequest(req, this);
|
||||
}
|
||||
|
||||
for (int id : qAsConst(aesToBeDeleted))
|
||||
for (int id : std::as_const(aesToBeDeleted))
|
||||
{
|
||||
if (m_aesDtc->dangerArea(id).isCentral)
|
||||
continue;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "handler_oc_data.h"
|
||||
#include <utility>
|
||||
|
||||
#include <LtsUtilsCore/dds_vector.h>
|
||||
#include <LtsUtilsCore/qbytearray_byteaccess.h>
|
||||
@@ -74,7 +75,7 @@ bool HandlerOcData::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const auto &data : qAsConst(dataVec))
|
||||
for (const auto &data : std::as_const(dataVec))
|
||||
{
|
||||
switch (data.aesTypeId)
|
||||
{
|
||||
|
||||
+3
-2
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "handler_oc_situation_data.h"
|
||||
#include <utility>
|
||||
|
||||
#include <LtsUtilsCore/qbytearray_byteaccess.h>
|
||||
#include <LtsUtilsCore/dds_vector.h>
|
||||
@@ -97,7 +98,7 @@ void HandlerOcSituationData::process(const QByteArray &data, bool bIsInitial)
|
||||
|
||||
int ownEquipmentNumber = m_tabocDtc->specificsEquipment(1).equipmentNumber;
|
||||
int ownParticipantId = -1;
|
||||
for (const int &participantId : qAsConst(m_participantId2EqId))
|
||||
for (const int &participantId : std::as_const(m_participantId2EqId))
|
||||
{
|
||||
if (m_participantId2EqId.value(participantId) == ownEquipmentNumber)
|
||||
{
|
||||
@@ -138,7 +139,7 @@ void HandlerOcSituationData::removeAllPositions()
|
||||
invalidPos.position.reportingSource = Core::PositionReportingSource::SetByOperator; // SetByOperator -> nan is allowed
|
||||
invalidPos.sampleTime = m_dds->currentPartitionTime();
|
||||
|
||||
for (const auto eqNumber : qAsConst(m_participantId2EqId))
|
||||
for (const auto eqNumber : std::as_const(m_participantId2EqId))
|
||||
{
|
||||
invalidPos.equipmentNumber = eqNumber;
|
||||
m_tabDts->publish(invalidPos);
|
||||
|
||||
Reference in new issue
Block a user