small style changes
This commit is contained in:
parent
588c956191
commit
751bd5849b
2 changed files with 6 additions and 7 deletions
|
@ -110,11 +110,10 @@ int main(int argc, char** argv)
|
|||
QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.kdeconnect", "/modules/kdeconnect", "org.kde.kdeconnect.daemon", "forceOnNetworkChange");
|
||||
QDBusConnection::sessionBus().call(msg);
|
||||
} else {
|
||||
QString device;
|
||||
if(!parser.isSet("device")) {
|
||||
QTextStream(stderr) << i18n("No device specified") << endl;
|
||||
}
|
||||
device = parser.value("device");
|
||||
const QString device = parser.value("device");
|
||||
if(parser.isSet("share")) {
|
||||
QUrl url = QUrl::fromUserInput(parser.value("share"), QDir::currentPath());
|
||||
parser.clearPositionalArguments();
|
||||
|
|
|
@ -30,12 +30,12 @@
|
|||
|
||||
#include "lanlinkprovider.h"
|
||||
|
||||
DownloadJob::DownloadJob(const QHostAddress &address, const QVariantMap &transferInfo): KJob()
|
||||
DownloadJob::DownloadJob(const QHostAddress &address, const QVariantMap &transferInfo)
|
||||
: KJob()
|
||||
, mAddress(address)
|
||||
, mPort(transferInfo["port"].toInt())
|
||||
, mSocket(new QSslSocket)
|
||||
{
|
||||
mAddress = address;
|
||||
mPort = transferInfo["port"].toInt();
|
||||
mSocket = QSharedPointer<QSslSocket>(new QSslSocket);
|
||||
|
||||
// Setting ssl related properties for socket when using ssl
|
||||
mSocket->setLocalCertificate(KdeConnectConfig::instance()->certificate());
|
||||
mSocket->setPrivateKey(KdeConnectConfig::instance()->privateKeyPath());
|
||||
|
|
Loading…
Reference in a new issue