Skip to content

Commit 0bce174

Browse files
committed
Change unchanging settings strings into constexpr auto in accountmanager
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
1 parent 8de5b0f commit 0bce174

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/gui/accountmanager.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
#include "ui_mnemonicdialog.h"
3030

3131
namespace {
32-
static const char urlC[] = "url";
33-
static const char authTypeC[] = "authType";
34-
static const char userC[] = "user";
35-
static const char displayNameC[] = "displayName";
36-
static const char httpUserC[] = "http_user";
37-
static const char davUserC[] = "dav_user";
38-
static const char caCertsKeyC[] = "CaCertificates";
39-
static const char accountsC[] = "Accounts";
40-
static const char versionC[] = "version";
41-
static const char serverVersionC[] = "serverVersion";
32+
constexpr auto urlC = "url";
33+
constexpr auto authTypeC = "authType";
34+
constexpr auto userC = "user";
35+
constexpr auto displayNameC = "displayName";
36+
constexpr auto httpUserC = "http_user";
37+
constexpr auto davUserC = "dav_user";
38+
constexpr auto caCertsKeyC = "CaCertificates";
39+
constexpr auto accountsC = "Accounts";
40+
constexpr auto versionC = "version";
41+
constexpr auto serverVersionC = "serverVersion";
4242

4343
// The maximum versions that this client can read
4444
static const int maxAccountsVersion = 2;

0 commit comments

Comments
 (0)