summaryrefslogtreecommitdiffstats
path: root/core/cloudstorage.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-11-18 19:57:50 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-18 21:57:33 +0100
commit6ae16b87d0560ac06e882da122f43b0e9b913b34 (patch)
tree7719c68851b20116a9fdc62b3fd71085bdfcdbb7 /core/cloudstorage.cpp
parentf8fcd65bc4598ac150477f6caa64c617ec220982 (diff)
downloadsubsurface-6ae16b87d0560ac06e882da122f43b0e9b913b34.tar.gz
Constify strings in pref.h
Make all char * pointers in pref.h const to make it clear that these strings are not mutable. This meant adding a number of (void *) casts in calls to free(). Apart from being the right thing to do, this commit makes the code more consistent, as many of the strings in pref.h were already const. While touching core/qthelper.cpp turn three instances of (void*) into (void *). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/cloudstorage.cpp')
-rw-r--r--core/cloudstorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cloudstorage.cpp b/core/cloudstorage.cpp
index 5a1f2b06a..11743303c 100644
--- a/core/cloudstorage.cpp
+++ b/core/cloudstorage.cpp
@@ -64,7 +64,7 @@ void CloudStorageAuthenticate::uploadFinished()
csSettings.setVerificationStatus(CS_NEED_TO_VERIFY);
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {
- free(prefs.cloud_storage_password);
+ free((void *)prefs.cloud_storage_password);
prefs.cloud_storage_password = prefs.cloud_storage_newpassword;
prefs.cloud_storage_newpassword = NULL;
emit passwordChangeSuccessful();