From 73ddd57cf0e3ce3c45ba9c340af47ae74267235a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 23:00:14 +0200 Subject: preferences_network.cpp: remove some unused 'reply' variables Signed-off-by: Lubomir I. Ivanov --- desktop-widgets/preferences/preferences_network.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'desktop-widgets/preferences') diff --git a/desktop-widgets/preferences/preferences_network.cpp b/desktop-widgets/preferences/preferences_network.cpp index 3780a6c91..d812f4ab1 100644 --- a/desktop-widgets/preferences/preferences_network.cpp +++ b/desktop-widgets/preferences/preferences_network.cpp @@ -76,7 +76,7 @@ void PreferencesNetwork::syncSettings() CloudStorageAuthenticate *cloudAuth = new CloudStorageAuthenticate(this); connect(cloudAuth, SIGNAL(finishedAuthenticate()), this, SLOT(cloudPinNeeded())); connect(cloudAuth, SIGNAL(passwordChangeSuccessful()), this, SLOT(passwordUpdateSuccessfull())); - QNetworkReply *reply = cloudAuth->backend(email, password, "", newpassword); + cloudAuth->backend(email, password, "", newpassword); ui->cloud_storage_new_passwd->setText(""); free(prefs.cloud_storage_newpassword); prefs.cloud_storage_newpassword = strdup(qPrintable(newpassword)); @@ -97,7 +97,7 @@ void PreferencesNetwork::syncSettings() } else { CloudStorageAuthenticate *cloudAuth = new CloudStorageAuthenticate(this); connect(cloudAuth, SIGNAL(finishedAuthenticate()), this, SLOT(cloudPinNeeded())); - QNetworkReply *reply = cloudAuth->backend(email, password); + cloudAuth->backend(email, password); } } } else if (prefs.cloud_verification_status == CS_NEED_TO_VERIFY) { @@ -110,7 +110,7 @@ void PreferencesNetwork::syncSettings() } CloudStorageAuthenticate *cloudAuth = new CloudStorageAuthenticate(this); connect(cloudAuth, SIGNAL(finishedAuthenticate()), this, SLOT(cloudPinNeeded())); - QNetworkReply *reply = cloudAuth->backend(email, password, pin); + cloudAuth->backend(email, password, pin); } } SAVE_OR_REMOVE("email", default_prefs.cloud_storage_email, email); @@ -169,4 +169,4 @@ void PreferencesNetwork::proxyType_changed(int idx) void PreferencesNetwork::passwordUpdateSuccessfull() { ui->cloud_storage_password->setText(prefs.cloud_storage_password); -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2 From 809f50753770a6b55cafb0ac5d9dc0a63b47d0d4 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 23:17:24 +0200 Subject: preferencesdialog.cpp: silence a switch warning Signed-off-by: Lubomir I. Ivanov --- desktop-widgets/preferences/preferencesdialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/preferences') diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index 6f3523c0b..6885469c5 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -84,6 +84,7 @@ void PreferencesDialog::buttonClicked(QAbstractButton* btn) case QDialogButtonBox::AcceptRole : applyRequested(true); return; case QDialogButtonBox::RejectRole : cancelRequested(); return; case QDialogButtonBox::ResetRole : defaultsRequested(); return; + default: return; } } -- cgit v1.2.3-70-g09d2 From 829f7a2ee264b4e25e8ea926a98199f8049a23d6 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 23:20:09 +0200 Subject: abstractpreferenceswidget.cpp: fix argument warning Signed-off-by: Lubomir I. Ivanov --- desktop-widgets/preferences/abstractpreferenceswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/preferences') diff --git a/desktop-widgets/preferences/abstractpreferenceswidget.cpp b/desktop-widgets/preferences/abstractpreferenceswidget.cpp index 9334c74ed..54d2417f9 100644 --- a/desktop-widgets/preferences/abstractpreferenceswidget.cpp +++ b/desktop-widgets/preferences/abstractpreferenceswidget.cpp @@ -1,7 +1,7 @@ #include "abstractpreferenceswidget.h" AbstractPreferencesWidget::AbstractPreferencesWidget(const QString& name, const QIcon& icon, float positionHeight) -: QWidget(), _name(name), _icon(icon), _positionHeight(positionHeight) +: QWidget(), _icon(icon), _name(name), _positionHeight(positionHeight) { } -- cgit v1.2.3-70-g09d2