Skip to content

Commit 31ae636

Browse files
committed
Add override keyword to overriden methods
1 parent 93d8835 commit 31ae636

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/custom_layers/ConfirmationLayer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class ConfirmationAlertLayer : public BaseCustomLayer
2828
{
2929
public:
3030
static ConfirmationAlertLayer* create();
31-
bool init();
31+
bool init() override;
3232

33-
void onClose(CCObject*);
33+
void onClose(CCObject*) override;
3434
void onYesButton(CCObject*);
3535
void onNoButton(CCObject*);
3636

src/custom_layers/IntegerInputLayer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class IntegerInputLayer : public BaseCustomLayer
2929
{
3030
public:
3131
static IntegerInputLayer* create();
32-
bool init();
32+
bool init() override;
3333

34-
void onClose(CCObject*);
34+
void onClose(CCObject*) override;
3535
void onLeftButton(CCObject*);
3636
void onRightButton(CCObject*);
3737

src/roulette/layers/RouletteLayer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class RouletteLayer : public BaseCustomLayer
3232

3333
public:
3434
static RouletteLayer* create();
35-
bool init();
35+
bool init() override;
3636

37-
void update(float);
37+
void update(float) override;
3838

39-
void onClose(CCObject*);
39+
void onClose(CCObject*) override;
4040
void onInfoButton(CCObject*);
4141
void onDifficultyChosen(CCObject*);
4242
void onStartButton(CCObject*);

0 commit comments

Comments
 (0)