From ebbf43f7606c67b6c7ec48afc031302238844a0a Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Fri, 14 Jul 2017 00:19:56 +0200 Subject: [PATCH] Coding style --- core/networkpackage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/networkpackage.cpp b/core/networkpackage.cpp index 77b54e22b..dd5e12e57 100644 --- a/core/networkpackage.cpp +++ b/core/networkpackage.cpp @@ -58,12 +58,11 @@ NetworkPackage::NetworkPackage(const QString& type, const QVariantMap &body) void NetworkPackage::createIdentityPackage(NetworkPackage* np) { KdeConnectConfig* config = KdeConnectConfig::instance(); - const QString id = config->deviceId(); np->mId = QString::number(QDateTime::currentMSecsSinceEpoch()); np->mType = PACKAGE_TYPE_IDENTITY; np->mPayload = QSharedPointer(); np->mPayloadSize = 0; - np->set(QStringLiteral("deviceId"), id); + np->set(QStringLiteral("deviceId"), config->deviceId()); np->set(QStringLiteral("deviceName"), config->name()); np->set(QStringLiteral("deviceType"), config->deviceType()); np->set(QStringLiteral("protocolVersion"), NetworkPackage::ProtocolVersion);