Style and comments

This commit is contained in:
Klaus Basan
2018-07-12 01:57:56 +02:00
parent dd4ce91744
commit 6af1998f58
5 changed files with 6 additions and 2 deletions

View File

@@ -416,8 +416,9 @@ namespace BlackMisc
void CRemoteAircraftProvider::storeChange(const CAircraftSituationChange &change)
{
QWriteLocker lock(&m_lockChanges);
// a change with the same timestamp will be replaced
const CCallsign cs(change.getCallsign());
QWriteLocker lock(&m_lockChanges);
CAircraftSituationChangeList &changeList = m_changesByCallsign[cs];
changeList.push_frontKeepLatestAdjustedFirst(change, true, IRemoteAircraftProvider::MaxSituationsPerCallsign);
}