Skip to content

Commit

Permalink
fix: fix clang-tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Oct 30, 2024
1 parent dadcd7b commit 92b8bad
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/discord/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[[nodiscard]] std::string constants::discord ::get_asset_key(constants::discord::ArtAsset asset) {

switch (asset) {
case ArtAsset::logo:
case ArtAsset::Logo:
return "logo";
default:
UNREACHABLE();
Expand Down
2 changes: 1 addition & 1 deletion src/discord/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace constants::discord {
#endif

// manually synchronized to https://discord.com/developers/applications/1220147916371394650/rich-presence/assets
enum class ArtAsset : u8 { logo };
enum class ArtAsset : u8 { Logo };

OOPETRIS_GRAPHICS_EXPORTED [[nodiscard]] std::string get_asset_key(ArtAsset asset);

Expand Down
2 changes: 1 addition & 1 deletion src/scenes/main_menu/main_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace scenes {

discord_instance->set_activity(
DiscordActivityWrapper("Selecting playmode", discord::ActivityType::Playing)
.set_large_image("Playing OOPetris", constants::discord::ArtAsset::logo)
.set_large_image("Playing OOPetris", constants::discord::ArtAsset::Logo)
.set_start_timestamp(std::chrono::system_clock::now())
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/replay_game/replay_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace scenes {

discord_instance->set_activity(
DiscordActivityWrapper("Replaying a game", discord::ActivityType::Playing)
.set_large_image("Playing OOPetris", constants::discord::ArtAsset::logo)
.set_large_image("Playing OOPetris", constants::discord::ArtAsset::Logo)
.set_start_timestamp(std::chrono::system_clock::now())
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/single_player_game/single_player_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace scenes {

discord_instance->set_activity(
DiscordActivityWrapper("Playing a single-player game", discord::ActivityType::Playing)
.set_large_image("Playing OOPetris", constants::discord::ArtAsset::logo)
.set_large_image("Playing OOPetris", constants::discord::ArtAsset::Logo)
.set_start_timestamp(std::chrono::system_clock::now())
);
}
Expand Down

0 comments on commit 92b8bad

Please sign in to comment.