diff options
author | jan Iversen <jani@apache.org> | 2018-07-24 18:23:10 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-25 08:35:04 -0700 |
commit | 8cfe04815070eaca6ef49d45f68879c0bdf3f2b6 (patch) | |
tree | 6be659a6b76da62ae751b850d785b3d33a2eeb01 /core/settings | |
parent | 5f3471bf868da59d0fb4410b77b50544cddde963 (diff) | |
download | subsurface-8cfe04815070eaca6ef49d45f68879c0bdf3f2b6.tar.gz |
core: update qPrefCloudStorage to new consensus
make load/sync inline
remove const from QString getters
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings')
-rw-r--r-- | core/settings/qPrefCloudStorage.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/settings/qPrefCloudStorage.h b/core/settings/qPrefCloudStorage.h index bfcdfe76e..30638c4ed 100644 --- a/core/settings/qPrefCloudStorage.h +++ b/core/settings/qPrefCloudStorage.h @@ -27,23 +27,23 @@ public: // Load/Sync local settings (disk) and struct preference void loadSync(bool doSync); - void load() { loadSync(false); } - void sync() { loadSync(true); } + void inline load() { loadSync(false); } + void inline sync() { loadSync(true); } public: - static inline const QString cloud_base_url() { return prefs.cloud_base_url; } - static inline const QString cloud_git_url() { return prefs.cloud_git_url; } - static inline const QString cloud_storage_email() { return prefs.cloud_storage_email; } - static inline const QString cloud_storage_email_encoded() { return prefs.cloud_storage_email_encoded; } - static inline const QString cloud_storage_newpassword() { return prefs.cloud_storage_newpassword; } - static inline const QString cloud_storage_password() { return prefs.cloud_storage_password; } - static inline const QString cloud_storage_pin() { return prefs.cloud_storage_pin; } + static inline QString cloud_base_url() { return prefs.cloud_base_url; } + static inline QString cloud_git_url() { return prefs.cloud_git_url; } + static inline QString cloud_storage_email() { return prefs.cloud_storage_email; } + static inline QString cloud_storage_email_encoded() { return prefs.cloud_storage_email_encoded; } + static inline QString cloud_storage_newpassword() { return prefs.cloud_storage_newpassword; } + static inline QString cloud_storage_password() { return prefs.cloud_storage_password; } + static inline QString cloud_storage_pin() { return prefs.cloud_storage_pin; } static inline int cloud_timeout() { return prefs.cloud_timeout; } static inline int cloud_verification_status() { return prefs.cloud_verification_status; } static inline bool git_local_only() { return prefs.git_local_only; } static inline bool save_password_local() { return prefs.save_password_local; } static inline bool save_userid_local() { return prefs.save_userid_local; } - static inline const QString userid() { return prefs.userid; } + static inline QString userid() { return prefs.userid; } public slots: void set_cloud_base_url(const QString& value); |