Skip to content

Commit 2931ddb

Browse files
committed
gode
1 parent df45bf0 commit 2931ddb

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "4.10.0",
2+
"geode": "4.11.0",
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",

src/classes/ui/MathQuiz.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace horrible {
3535
public:
3636
static MathQuiz* create();
3737

38-
void setCallback(std::function<void(bool)> const& cb);
38+
void setCallback(std::function<void(bool)> cb);
3939
void setCorrect(bool v);
4040

4141
void closePopup();

src/classes/ui/SpamChallenge.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace horrible {
2828

2929
bool ccTouchBegan(CCTouch* touch, CCEvent* event) override;
3030

31-
void setCallback(std::function<void(bool)> const& cb);
31+
void setCallback(std::function<void(bool)> cb);
3232
};
3333
};
3434
};

src/classes/ui/src/MathQuiz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ bool MathQuiz::init() {
239239
return true;
240240
};
241241

242-
void MathQuiz::setCallback(std::function<void(bool)> const& cb) {
243-
m_impl->m_callback = cb;
242+
void MathQuiz::setCallback(std::function<void(bool)> cb) {
243+
m_impl->m_callback = std::move(cb);
244244
};
245245

246246
void MathQuiz::setCorrect(bool v) {

src/classes/ui/src/SpamChallenge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ bool SpamChallenge::init() {
9090
return true;
9191
};
9292

93-
void SpamChallenge::setCallback(std::function<void(bool)> const& cb) {
94-
m_impl->m_callback = cb;
93+
void SpamChallenge::setCallback(std::function<void(bool)> cb) {
94+
m_impl->m_callback = std::move(cb);
9595
};
9696

9797
bool SpamChallenge::ccTouchBegan(CCTouch* touch, CCEvent* event) {

0 commit comments

Comments
 (0)