Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+5
-4
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "ppm_handler.h"
|
||||
#include <utility>
|
||||
#include "ngs_handler.h"
|
||||
#include <Common/participantinformation.h>
|
||||
|
||||
@@ -162,7 +163,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();
|
||||
@@ -457,7 +458,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);
|
||||
}
|
||||
|
||||
@@ -649,7 +650,7 @@ ProjectDataManagement::ChargeType PpmHandler::chargeTypeFromDisEntity(const std:
|
||||
m_dtcPdm = nullptr;
|
||||
}
|
||||
|
||||
for (const auto &item : qAsConst(m_chargeTypes))
|
||||
for (const auto &item : std::as_const(m_chargeTypes))
|
||||
{
|
||||
if (item.disEntity() == disEntity)
|
||||
return item;
|
||||
@@ -766,7 +767,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