aboutsummaryrefslogtreecommitdiff
path: root/lib/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/settings.cpp')
-rw-r--r--lib/settings.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/settings.cpp b/lib/settings.cpp
index 5549e4de..20734a7e 100644
--- a/lib/settings.cpp
+++ b/lib/settings.cpp
@@ -3,6 +3,7 @@
#include "settings.h"
+#include "util.h"
#include "logging.h"
#include <QtCore/QUrl>
@@ -109,10 +110,10 @@ QUO_DEFINE_SETTING(AccountSettings, QString, deviceName, "device_name", {},
QUO_DEFINE_SETTING(AccountSettings, bool, keepLoggedIn, "keep_logged_in", false,
setKeepLoggedIn)
-static const auto HomeserverKey = QStringLiteral("homeserver");
-static const auto AccessTokenKey = QStringLiteral("access_token");
-static const auto EncryptionAccountPickleKey =
- QStringLiteral("encryption_account_pickle");
+static constexpr auto HomeserverKey = "homeserver"_ls;
+static constexpr auto AccessTokenKey = "access_token"_ls;
+static constexpr auto EncryptionAccountPickleKey =
+ "encryption_account_pickle"_ls;
QUrl AccountSettings::homeserver() const
{