mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
Loop over the container itself instead of a temporary value list
This commit is contained in:
committed by
Mat Sutcliffe
parent
8df4024bde
commit
9a7af86a5e
@@ -791,15 +791,13 @@ namespace BlackSimPlugin
|
|||||||
const qint64 currentTimestamp = QDateTime::currentMSecsSinceEpoch();
|
const qint64 currentTimestamp = QDateTime::currentMSecsSinceEpoch();
|
||||||
|
|
||||||
// interpolation for all remote aircraft
|
// interpolation for all remote aircraft
|
||||||
const QList<CXPlaneMPAircraft> xplaneAircraftList(m_xplaneAircraftObjects.values());
|
|
||||||
|
|
||||||
PlanesPositions planesPositions;
|
PlanesPositions planesPositions;
|
||||||
PlanesSurfaces planesSurfaces;
|
PlanesSurfaces planesSurfaces;
|
||||||
PlanesTransponders planesTransponders;
|
PlanesTransponders planesTransponders;
|
||||||
|
|
||||||
int aircraftNumber = 0;
|
int aircraftNumber = 0;
|
||||||
const bool updateAllAircraft = this->isUpdateAllRemoteAircraft(currentTimestamp);
|
const bool updateAllAircraft = this->isUpdateAllRemoteAircraft(currentTimestamp);
|
||||||
for (const CXPlaneMPAircraft &xplaneAircraft : xplaneAircraftList)
|
for (const CXPlaneMPAircraft &xplaneAircraft : m_xplaneAircraftObjects)
|
||||||
{
|
{
|
||||||
const CCallsign callsign(xplaneAircraft.getCallsign());
|
const CCallsign callsign(xplaneAircraft.getCallsign());
|
||||||
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "missing callsign");
|
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "missing callsign");
|
||||||
|
|||||||
Reference in New Issue
Block a user