mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
[AFV] Ref T739, unified callsign functions in CAfvClient
* improved CallsignSet from QStringList * renamed the functions which just return a string * added functions for CCallsignSet
This commit is contained in:
@@ -21,12 +21,12 @@ namespace BlackMisc
|
||||
{
|
||||
CCallsignSet::CCallsignSet() { }
|
||||
|
||||
CCallsignSet::CCallsignSet(const QStringList &callsigns)
|
||||
CCallsignSet::CCallsignSet(const QStringList &callsigns, CCallsign::TypeHint typeHint)
|
||||
{
|
||||
for (const QString &c : callsigns)
|
||||
{
|
||||
if (c.isEmpty()) { continue; }
|
||||
const CCallsign cs(c);
|
||||
const CCallsign cs = CCallsign(c, typeHint);
|
||||
this->push_back(cs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user