diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-07-25 10:49:48 -0700 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-07-26 16:32:51 +0300 |
commit | 128fc5f4b81f036eeb76cda99704095673efbe8e (patch) | |
tree | 26f3b7daef8a4c8881f9129654e6136ea35bae5b /core/settings/qPrefCloudStorage.cpp | |
parent | 68b5fe9ccbbc7255a00d657cf29e6dc2515b8c3c (diff) | |
download | subsurface-128fc5f4b81f036eeb76cda99704095673efbe8e.tar.gz |
Whitespace cleanup core/settings
We can argue about any of the changes here, but they are the result of our
whitespace.pl script - so if any of this is offensive to you, part of the
resolution will be fixing the script...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefCloudStorage.cpp')
-rw-r--r-- | core/settings/qPrefCloudStorage.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/core/settings/qPrefCloudStorage.cpp b/core/settings/qPrefCloudStorage.cpp index 3455aaf2d..561554403 100644 --- a/core/settings/qPrefCloudStorage.cpp +++ b/core/settings/qPrefCloudStorage.cpp @@ -7,7 +7,8 @@ static const QString group = QStringLiteral("CloudStorage"); qPrefCloudStorage::qPrefCloudStorage(QObject *parent) : QObject(parent) { } -qPrefCloudStorage*qPrefCloudStorage::instance() + +qPrefCloudStorage *qPrefCloudStorage::instance() { static qPrefCloudStorage *self = new qPrefCloudStorage; return self; @@ -29,7 +30,7 @@ void qPrefCloudStorage::loadSync(bool doSync) disk_userid(doSync); } -void qPrefCloudStorage::set_cloud_base_url(const QString& value) +void qPrefCloudStorage::set_cloud_base_url(const QString &value) { QString valueGit = value + "/git"; if (value != prefs.cloud_base_url) { @@ -45,9 +46,10 @@ void qPrefCloudStorage::set_cloud_base_url(const QString& value) emit cloud_git_url_changed(valueGit); } } -DISK_LOADSYNC_TXT(CloudStorage, "/cloud_base_url", cloud_base_url) -void qPrefCloudStorage::set_cloud_git_url(const QString& value) +DISK_LOADSYNC_TXT(CloudStorage, "/cloud_base_url", cloud_base_url); + +void qPrefCloudStorage::set_cloud_git_url(const QString &value) { if (value != prefs.cloud_git_url) { // only free and set if not default @@ -58,13 +60,14 @@ void qPrefCloudStorage::set_cloud_git_url(const QString& value) emit cloud_git_url_changed(value); } } -DISK_LOADSYNC_TXT(CloudStorage, "/cloud_git_url", cloud_git_url) + +DISK_LOADSYNC_TXT(CloudStorage, "/cloud_git_url", cloud_git_url); HANDLE_PREFERENCE_TXT(CloudStorage, "/email", cloud_storage_email); HANDLE_PREFERENCE_TXT(CloudStorage, "/email_encoded", cloud_storage_email_encoded); -void qPrefCloudStorage::set_cloud_storage_newpassword(const QString& value) +void qPrefCloudStorage::set_cloud_storage_newpassword(const QString &value) { if (value == prefs.cloud_storage_newpassword) return; @@ -75,7 +78,7 @@ void qPrefCloudStorage::set_cloud_storage_newpassword(const QString& value) emit cloud_storage_newpassword_changed(value); } -void qPrefCloudStorage::set_cloud_storage_password(const QString& value) +void qPrefCloudStorage::set_cloud_storage_password(const QString &value) { if (value != prefs.cloud_storage_password) { qPrefPrivate::copy_txt(&prefs.cloud_storage_password, value); @@ -86,7 +89,7 @@ void qPrefCloudStorage::set_cloud_storage_password(const QString& value) void qPrefCloudStorage::disk_cloud_storage_password(bool doSync) { if (doSync) { - if (prefs.save_password_local) + if (prefs.save_password_local) qPrefPrivate::instance()->setting.setValue(group + "/password", prefs.cloud_storage_password); } else { prefs.cloud_storage_password = copy_qstring(qPrefPrivate::instance()->setting.value(group + "/password", default_prefs.cloud_storage_password).toString()); |