From f901655ef480e12b08fef8757042a24870dc0798 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 16 Nov 2016 21:37:07 +0100 Subject: [PATCH] Warning --- core/device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/device.cpp b/core/device.cpp index 5f908493d..5dd42a190 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -406,15 +406,15 @@ QString Device::encryptionInfo() const QCryptographicHash::Algorithm digestAlgorithm = QCryptographicHash::Algorithm::Sha1; QString localSha1 = QString::fromLatin1(KdeConnectConfig::instance()->certificate().digest(digestAlgorithm).toHex()); - for (int i=2 ; igetDeviceProperty(id(), "certificate").toStdString(); - QSslCertificate remoteCertificate = QSslCertificate(QByteArray(remotePem.c_str(), remotePem.size())); + QSslCertificate remoteCertificate = QSslCertificate(QByteArray(remotePem.c_str(), (int)remotePem.size())); QString remoteSha1 = QString::fromLatin1(remoteCertificate.digest(digestAlgorithm).toHex()); - for (int i=2 ; i