Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+4
-3
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
#include "ngs_connector.h"
|
||||
#include <utility>
|
||||
#include "ngs_handler.h"
|
||||
#include "ppm_handler.h"
|
||||
#include "damage_model.h"
|
||||
@@ -354,7 +355,7 @@ void NgsConnector::unsubscribeFromNgs()
|
||||
rpr2::IObserverWeaponFireIntClass &wf = m_somPlayer->getObserverWeaponFireIntClass(*m_iaWeaponFireCallback);
|
||||
wf.unsubscribe();
|
||||
}
|
||||
for (rpr2::IPlayerBaseEntityObjInstance *player : qAsConst(m_playerMap))
|
||||
for (rpr2::IPlayerBaseEntityObjInstance *player : std::as_const(m_playerMap))
|
||||
player->deleteObjectInstance(getSimTime());
|
||||
|
||||
m_playerMap.clear();
|
||||
@@ -959,7 +960,7 @@ QPolygonF NgsConnector::utmToGeogrphic(const QPolygonF &polyUtm, const LtsCoordT
|
||||
{
|
||||
QPolygonF poly;
|
||||
poly.reserve(polyUtm.size());
|
||||
for (const QPointF &point : qAsConst(polyUtm))
|
||||
for (const QPointF &point : std::as_const(polyUtm))
|
||||
poly << base.geographic(point);
|
||||
return poly;
|
||||
}
|
||||
@@ -1459,7 +1460,7 @@ void NgsConnector::onNewEventReport(const rpr2::IObserverEventReportIntInstance
|
||||
vecGears.reserve(gears.size());
|
||||
|
||||
QString gearsString;
|
||||
for (const auto &gear : qAsConst(gears))
|
||||
for (const auto &gear : std::as_const(gears))
|
||||
{
|
||||
vecGears.push_back(gear);
|
||||
gearsString.append(tr("[GearId: %1, GearTypeId; %2] ").arg(gear.gearId()).arg(gear.gearTypeId()));
|
||||
|
||||
Reference in new issue
Block a user