mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #428 Use COriginator instead of QString in internal API
This commit is contained in:
@@ -275,12 +275,12 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
const QString &CAtcStationComponent::originator()
|
||||
COriginator CAtcStationComponent::originator()
|
||||
{
|
||||
// string is generated once, the timestamp allows to use multiple
|
||||
// components (as long as they are not generated at the same ms)
|
||||
static const QString o = QString("ATCSTATIOCOMPONENT:").append(QString::number(QDateTime::currentMSecsSinceEpoch()));
|
||||
return o;
|
||||
if (m_originator.getName().isEmpty())
|
||||
m_originator = COriginator(QStringLiteral("ATCSTATIOCOMPONENT"));
|
||||
|
||||
return m_originator;
|
||||
}
|
||||
|
||||
void CAtcStationComponent::ps_onlineAtcStationSelected(QModelIndex index)
|
||||
|
||||
Reference in New Issue
Block a user