refs #649, do not init to current timestamp

* force explicit init (performance/invalid objects)
* allow to find mising timestamps
* style
This commit is contained in:
Klaus Basan
2016-05-24 00:25:39 +02:00
parent 9606ab12db
commit 2b49591f1b
6 changed files with 118 additions and 19 deletions

View File

@@ -16,7 +16,8 @@
namespace BlackMisc
{
CIdentifier::CIdentifier(const QString &name)
: m_name(name.trimmed()),
: ITimestampBased(QDateTime::currentMSecsSinceEpoch()),
m_name(name.trimmed()),
m_machineIdBase64(QDBusConnection::localMachineId().toBase64()),
m_machineName(QHostInfo::localHostName()),
m_processName(QCoreApplication::applicationName()),