File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "geode" : " 4.10 .0" ,
2+ "geode" : " 4.11 .0" ,
33 "gd" : {
44 "win" : " 2.2074" ,
55 "android" : " 2.2074" ,
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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};
Original file line number Diff line number Diff 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
246246void MathQuiz::setCorrect (bool v) {
Original file line number Diff line number Diff 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
9797bool SpamChallenge::ccTouchBegan (CCTouch* touch, CCEvent* event) {
You can’t perform that action at this time.
0 commit comments