Skip to content

Commit

Permalink
remove const from Paddle instance
Browse files Browse the repository at this point in the history
- downstream (macOS) has a subclass with non-const member functions that need to be called
  • Loading branch information
sh95014 committed Dec 22, 2023
1 parent b8ad971 commit eac08ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/linux/paddle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace
}


std::shared_ptr<const Paddle> Paddle::instance;
std::shared_ptr<Paddle> Paddle::instance;

std::set<int> Paddle::ourButtons;
bool Paddle::ourSquaring = true;
Expand Down
2 changes: 1 addition & 1 deletion source/linux/paddle.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Paddle
static std::set<int> ourButtons;
static void setSquaring(bool value);

static std::shared_ptr<const Paddle> instance;
static std::shared_ptr<Paddle> instance;

private:
static bool ourSquaring;
Expand Down

0 comments on commit eac08ff

Please sign in to comment.