Skip to content

Commit

Permalink
clang-tidy fixes related to CheatsFixture
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaau committed Dec 14, 2024
1 parent 3ef75cb commit c4d4708
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/s25main/GameInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ class GameInterface
/// Executes the construction of a road
virtual void GI_BuildRoad() = 0;

virtual Cheats& GI_GetCheats() = 0;
virtual Cheats& GI_GetCheats() noexcept = 0;
};
2 changes: 1 addition & 1 deletion libs/s25main/desktops/dskGameInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class dskGameInterface :
/// Baut die gewünschte bis jetzt noch visuelle Straße (schickt Anfrage an Server)
void GI_BuildRoad() override;

Cheats& GI_GetCheats() override { return cheats_; }
Cheats& GI_GetCheats() noexcept override { return cheats_; }

// Sucht einen Weg von road_point_x/y zu cselx/y und baut ihn ( nur visuell )
// Bei Wasserwegen kann die Reichweite nicht bis zum gewünschten
Expand Down
2 changes: 1 addition & 1 deletion tests/s25Main/integration/testCheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ constexpr auto worldWidth = 64;
constexpr auto worldHeight = 64;
struct CheatsFixture : WorldFixture<CreateEmptyWorld, numPlayers, worldWidth, worldHeight>
{
dskGameInterface gameDesktop{game, 0, 0, 0};
dskGameInterface gameDesktop{game, nullptr, 0, false};
Cheats& cheats = gameDesktop.GI_GetCheats();
const GameWorldViewer& viewer = gameDesktop.GetView().GetViewer();

Expand Down

0 comments on commit c4d4708

Please sign in to comment.