From 54977ee6e92aee585d3a64f731180c24c8d6f8a4 Mon Sep 17 00:00:00 2001 From: Totto16 Date: Tue, 29 Oct 2024 00:47:48 +0100 Subject: [PATCH] fix don#t specify constexpr const values as std::string, but as const char* --- src/lobby/api.cpp | 2 +- src/lobby/credentials/secret.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lobby/api.cpp b/src/lobby/api.cpp index f34343a72..0b54c9129 100644 --- a/src/lobby/api.cpp +++ b/src/lobby/api.cpp @@ -14,7 +14,7 @@ namespace { namespace constants { - constexpr const std::string api_token_key = "API_TOKEN_save"; + constexpr const char* api_token_key = "API_TOKEN_save"; } } // namespace diff --git a/src/lobby/credentials/secret.cpp b/src/lobby/credentials/secret.cpp index 8d55646f6..5da047dd8 100644 --- a/src/lobby/credentials/secret.cpp +++ b/src/lobby/credentials/secret.cpp @@ -10,7 +10,7 @@ namespace { namespace constants { constexpr const char* key_type_user = "user"; - constexpr const std::string key_name_prefix = "OOPetris_key__"; + constexpr const char* key_name_prefix = "OOPetris_key__"; } // namespace constants std::string get_key_name(const std::string& key) {