Ref T171, callsign strings can be (alphabetically) sorted

This commit is contained in:
Klaus Basan
2017-10-13 19:52:44 +02:00
parent 268f6049d3
commit a4c7cea793
2 changed files with 3 additions and 2 deletions

View File

@@ -26,13 +26,14 @@ namespace BlackMisc
CCollection<CCallsign>(other)
{ }
QStringList CCallsignSet::getCallsignStrings() const
QStringList CCallsignSet::getCallsignStrings(bool sorted) const
{
QStringList callsigns;
for (const CCallsign &cs : *this)
{
callsigns.push_back(cs.asString());
}
if (sorted) { callsigns.sort(); }
return callsigns;
}