fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+4
-3
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "handler_oc_aes_data.h"
|
||||
#include <utility>
|
||||
#include <functional>
|
||||
|
||||
#include <QtCore/QByteArray>
|
||||
@@ -61,7 +62,7 @@ bool HandlerOcAesData::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const auto &data : qAsConst(dataVec))
|
||||
for (const auto &data : std::as_const(dataVec))
|
||||
{
|
||||
switch (data.aesTypeId)
|
||||
{
|
||||
@@ -199,7 +200,7 @@ void HandlerOcAesData::sendIedPositions()
|
||||
LtsUtils::set1Byte(OcSituation::AesType::IedPositions, data);
|
||||
LtsUtils::set1Byte(cnt, data);
|
||||
|
||||
for (const auto &pos : qAsConst(m_iedPositionsToBeSend))
|
||||
for (const auto &pos : std::as_const(m_iedPositionsToBeSend))
|
||||
{
|
||||
LtsUtils::set2Byte(m_gimDtc->ied(pos.id).equipmentNumber, data);
|
||||
const QPointF relCoord(m_positionConverter->relativeFromGeographic(pos.position));
|
||||
@@ -252,7 +253,7 @@ void HandlerOcAesData::collectionTimeout(OcSituation::AesType type, const std::f
|
||||
if (m_demandingEquipments[type].size() > 5)
|
||||
sendFunction(0); // broadcast
|
||||
else
|
||||
for (int eqNumber : qAsConst(m_demandingEquipments[type]))
|
||||
for (int eqNumber : std::as_const(m_demandingEquipments[type]))
|
||||
sendFunction(eqNumber);
|
||||
|
||||
//cleanup
|
||||
|
||||
Reference in new issue
Block a user