refs #689, refs #703, re-applied context change to subdir version

Change MetarSet to MetarList:
CMetarSet was implemented as a collection. This only makes sense for values which have one member variable only or hardly ever change. METARs often change and therefore a collection didn’t make much sense.
Additional profiling showed that a sequence has better algorithmic performance.
This commit is contained in:
Klaus Basan
2016-07-12 03:55:41 +02:00
parent 409534fa5e
commit 5236688e03
2 changed files with 3 additions and 3 deletions

View File

@@ -440,7 +440,7 @@ namespace BlackCore
m_airspace->analyzer()->setSimulatorRenderRestrictionsChanged(restricted, enabled, maxAircraft, maxRenderedDistance, maxRenderedBoundary);
}
void CContextNetwork::ps_updateMetars(const BlackMisc::Weather::CMetarSet &metars)
void CContextNetwork::ps_updateMetars(const BlackMisc::Weather::CMetarList &metars)
{
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
CLogMessage(this).info("%1 METARs updated") << metars.size();