Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+7
-6
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "ppm_handler.h"
|
||||
#include <utility>
|
||||
#include "ngs_handler.h"
|
||||
#include <Common/participantinformation.h>
|
||||
|
||||
@@ -158,7 +159,7 @@ int PpmHandler::getEquipmentNo(int participantId) const
|
||||
|
||||
int PpmHandler::getParticipantIdByExternalId(int externalId) const
|
||||
{
|
||||
for(const auto &part : qAsConst(m_partData))
|
||||
for(const auto &part : std::as_const(m_partData))
|
||||
{
|
||||
if (part.externalId() == externalId)
|
||||
return part.id();
|
||||
@@ -415,7 +416,7 @@ void PpmHandler::startPublishToNgs()
|
||||
|
||||
INFO_LOG(m_logger) << "(Re)Adding all players, size: " << m_partData.size();
|
||||
|
||||
for (const ParticipantManagement::Participant &participant : qAsConst(m_partData))
|
||||
for (const ParticipantManagement::Participant &participant : std::as_const(m_partData))
|
||||
createParticipant(participant);
|
||||
}
|
||||
|
||||
@@ -680,7 +681,7 @@ ProjectDataManagement::ChargeType PpmHandler::chargeTypeFromDisEntity(const std:
|
||||
m_chargeTypes = m_dtcPdm->chargeTypes();
|
||||
}
|
||||
|
||||
for (const auto &item : qAsConst(m_chargeTypes))
|
||||
for (const auto &item : std::as_const(m_chargeTypes))
|
||||
{
|
||||
if (item.disEntity() == disEntity)
|
||||
return item;
|
||||
@@ -696,7 +697,7 @@ ProjectDataManagement::ChargeType PpmHandler::chargeTypeFromTasCodeDirect(int32_
|
||||
m_chargeTypes = m_dtcPdm->chargeTypes();
|
||||
}
|
||||
|
||||
for (const auto &item : qAsConst(m_chargeTypes))
|
||||
for (const auto &item : std::as_const(m_chargeTypes))
|
||||
{
|
||||
if (item.legacyId() == tasCode)
|
||||
return item;
|
||||
@@ -713,7 +714,7 @@ int PpmHandler::gearTypeIdFromChargeTypeId(int chargeTypeId)
|
||||
}
|
||||
|
||||
int gearTypeId = 999999999;
|
||||
for (const auto &item : qAsConst(m_gearTypeChargeTypes))
|
||||
for (const auto &item : std::as_const(m_gearTypeChargeTypes))
|
||||
{
|
||||
if (item.chargeTypeId() == chargeTypeId)
|
||||
if (item.gearTypeId() < gearTypeId)
|
||||
@@ -834,7 +835,7 @@ int PpmHandler::partyIdFromForceIdentifier(rpr2::ForceIdentifierEnum8::ET fi)
|
||||
m_partyData = m_dtcPpm->partys();
|
||||
}
|
||||
|
||||
for (const ParticipantManagement::Party &item : qAsConst(m_partyData))
|
||||
for (const ParticipantManagement::Party &item : std::as_const(m_partyData))
|
||||
{
|
||||
if (fi == getRprForceIdentifierFromPpmForceIdentifier(item.hlaForceIdentifier()))
|
||||
return item.id();
|
||||
|
||||
Reference in new issue
Block a user