diff options
author | jan Iversen <jani@apache.org> | 2018-09-09 16:01:58 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-11 17:25:00 -0700 |
commit | 7129ad92a4ee5899680815c8cd2648a9f71bb651 (patch) | |
tree | 7742adf355886f4eaaa907b46fbb070a268dbb55 | |
parent | 178c01baf584fa6ec18d7802393ebe0c415d73ca (diff) | |
download | subsurface-7129ad92a4ee5899680815c8cd2648a9f71bb651.tar.gz |
core/settings: optimize base_url functions.
Remove unused variable and create of QString.
Signed-off-by: Jan Iversen <jani@apache.org>
-rw-r--r-- | core/settings/qPrefCloudStorage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/settings/qPrefCloudStorage.cpp b/core/settings/qPrefCloudStorage.cpp index 741a14077..ef7605d97 100644 --- a/core/settings/qPrefCloudStorage.cpp +++ b/core/settings/qPrefCloudStorage.cpp @@ -28,12 +28,11 @@ void qPrefCloudStorage::loadSync(bool doSync) void qPrefCloudStorage::set_cloud_base_url(const QString &value) { - QString valueGit = value + "/git"; if (value != prefs.cloud_base_url) { // only free and set if not default if (prefs.cloud_base_url != default_prefs.cloud_base_url) { qPrefPrivate::copy_txt(&prefs.cloud_base_url, value); - qPrefPrivate::copy_txt(&prefs.cloud_git_url, QString(prefs.cloud_base_url) + "/git"); + qPrefPrivate::copy_txt(&prefs.cloud_git_url, value + "/git"); } disk_cloud_base_url(true); |