refs #506, applied recommended changes for 506 to other filters

https://dev.vatsim-germany.org/issues/506#note-5
This commit is contained in:
Klaus Basan
2016-12-26 18:24:42 +01:00
committed by Mathew Sutcliffe
parent b3c7be8765
commit 59eb0247a7
7 changed files with 44 additions and 51 deletions

View File

@@ -29,7 +29,6 @@ namespace BlackGui
{
if (!this->isValid()) { return inContainer; }
CAirlineIcaoCodeList outContainer;
bool end = false;
for (const CAirlineIcaoCode &icao : inContainer)
{
if (!m_vDesignator.isEmpty())
@@ -58,7 +57,6 @@ namespace BlackGui
}
outContainer.push_back(icao);
if (end) { break; }
}
return outContainer;
}

View File

@@ -32,7 +32,7 @@ namespace BlackGui
if (!m_isoCode.isEmpty())
{
if (country.getIsoCode() != m_isoCode) { continue; }
end = true; // there should me only one designator
end = true; // there should be only one designator
}
if (!this->m_name.isEmpty())