Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+6
-5
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "ppm_handler.h"
|
||||
#include <utility>
|
||||
#include "Core/core.hpp"
|
||||
|
||||
#include <QJsonDocument>
|
||||
@@ -457,7 +458,7 @@ void PpmHandler::removeAllSAAParticipants(const int partyId)
|
||||
return;
|
||||
ParticipantManagement::ModifyParticipantDataRequest req;
|
||||
std::vector<ParticipantManagement::ParticipantData> list;
|
||||
for (const auto &part : qAsConst(participants))
|
||||
for (const auto &part : std::as_const(participants))
|
||||
{
|
||||
const ParticipantManagement::Type &participantType = m_dtcPpm->type(part.typeId());
|
||||
bool isUnitType
|
||||
@@ -715,7 +716,7 @@ void PpmHandler::handleParticipantPositionChangedInternal(const ParticipantManag
|
||||
{
|
||||
const QVector<int32_t> mountedParticipantIds(position.mountedParticipants().get().begin(), position.mountedParticipants().get().end());
|
||||
|
||||
for (int mountedParticipantId : qAsConst(mountedParticipantIds))
|
||||
for (int mountedParticipantId : std::as_const(mountedParticipantIds))
|
||||
{
|
||||
ParticipantManagement::Participant mountedParticipant = m_dtcPpm->participant(mountedParticipantId);
|
||||
const bool isExternal = mountedParticipant.externalId() > 0;
|
||||
@@ -851,7 +852,7 @@ QList<ParticipantManagement::Participant> PpmHandler::findAllSAAParticipants(con
|
||||
{
|
||||
QList<ParticipantManagement::Participant> ret;
|
||||
const auto &list = m_dtcPpm->participants();
|
||||
for (const auto &part : qAsConst(list))
|
||||
for (const auto &part : std::as_const(list))
|
||||
{
|
||||
if (part.partyId() != partyId || part.isDeleted())
|
||||
continue;
|
||||
@@ -889,7 +890,7 @@ ParticipantManagement::ParticipantData PpmHandler::findRootUnit(const int partyI
|
||||
{
|
||||
ParticipantManagement::ParticipantData ret;
|
||||
const auto &list = m_dtcPpm->participants();
|
||||
for (const auto &part : qAsConst(list))
|
||||
for (const auto &part : std::as_const(list))
|
||||
{
|
||||
if (part.partyId() != partyId || part.isDeleted())
|
||||
continue;
|
||||
@@ -910,7 +911,7 @@ ParticipantManagement::Participant PpmHandler::findParticipantByInternalName(con
|
||||
ParticipantManagement::Participant pp;
|
||||
DEBUG_LOG(m_logger) << "START find participant: " << internalName;
|
||||
auto participantMap = m_dtcPpm->participants();
|
||||
for (const auto &part : qAsConst(participantMap))
|
||||
for (const auto &part : std::as_const(participantMap))
|
||||
{
|
||||
if (part.partyId() != partyId || part.isDeleted())
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user