Skip to content

Commit

Permalink
fix don#t specify constexpr const values as std::string, but as const…
Browse files Browse the repository at this point in the history
… char*
  • Loading branch information
Totto16 committed Oct 28, 2024
1 parent 25920f4 commit 54977ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lobby/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/lobby/credentials/secret.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 54977ee

Please sign in to comment.