mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #428 Use COriginator instead of QString in internal API
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "commandinput.h"
|
||||
#include <QDateTime>
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
|
||||
@@ -30,12 +32,12 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
const QString &CCommandInput::commandInputOriginator()
|
||||
COriginator CCommandInput::commandInputOriginator()
|
||||
{
|
||||
// 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 = QStringLiteral("COMMANDINPUT:").append(QString::number(QDateTime::currentMSecsSinceEpoch()));
|
||||
return o;
|
||||
if (m_originator.getName().isEmpty())
|
||||
m_originator = COriginator(QStringLiteral("COMMANDINPUT"));
|
||||
|
||||
return m_originator;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user