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) {