Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 09179396 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1Char

parent c49bef52
......@@ -159,10 +159,10 @@ Protocol Utils::protocolByName(const QString &name)
QString Utils::createUniqueId()
{
qint64 time = QDateTime::currentMSecsSinceEpoch() / 1000;
int r = qrand() % 1000;
QString id = QLatin1String("R") + QString::number(r);
QString uid = QString::number(time) + QLatin1String(".") + id;
const qint64 time = QDateTime::currentMSecsSinceEpoch() / 1000;
const int r = qrand() % 1000;
const QString id = QLatin1Char('R') + QString::number(r);
const QString uid = QString::number(time) + QLatin1Char('.') + id;
return uid;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment