Skip to content

Commit

Permalink
Fix clang-tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Dec 15, 2024
1 parent 4728bf4 commit 63252b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/dialog/speech_bubble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

SpeechBubble::SpeechBubble(std::shared_ptr<Game> game,
const std::string &spine_file,
const jngl::Text &text,
const jngl::Text &characterName,
jngl::Text text,
jngl::Text characterName,
const jngl::Rgba characterNameColor
)
: SpineObject(game, spine_file, "SpeechBubble", .2f),
text(text),
text(std::move(text)),
textColor(game->getDialogManager()->textToColor((*game->lua_state)["config"]["default_font_color"])),
characterName(characterName),
characterNameColor(characterNameColor)
Expand Down
4 changes: 2 additions & 2 deletions src/dialog/speech_bubble.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class SpeechBubble : public SpineObject
{
public:
SpeechBubble(std::shared_ptr<Game> game, const std::string &spine_file,
const jngl::Text &text,
const jngl::Text &characterName,
jngl::Text text,
jngl::Text characterName,
const jngl::Rgba characterNameColor);
void draw() const override;
bool step(bool force = false) override;
Expand Down
2 changes: 1 addition & 1 deletion src/scene_fade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SceneFade::SceneFade(std::shared_ptr<jngl::Work> game,
std::function<void()> loadScene)
: loadScene(std::move(loadScene)), game(game) {}
: loadScene(std::move(loadScene)), game(std::move(game)) {}

void SceneFade::step() {
if (loadScene) {
Expand Down

0 comments on commit 63252b5

Please sign in to comment.