Made date format a QStringLiteral

This commit is contained in:
Daniel Brunner
2018-10-04 23:45:07 +02:00
parent 18200d21db
commit 25a954ed84

View File

@@ -23,7 +23,7 @@ Server::Server(QObject *parent) :
void Server::timerEvent(QTimerEvent *event)
{
if(event->timerId() == m_timerId)
Q_EMIT distribute(QDateTime::currentDateTime().toString("dd.MM.yyyy HH:mm:ss\r\n").toUtf8());
Q_EMIT distribute(QDateTime::currentDateTime().toString(QStringLiteral("dd.MM.yyyy HH:mm:ss\r\n")).toUtf8());
else
QObject::timerEvent(event);
}