mirror of https://github.com/axmolengine/axmol.git
Adds override keyword for some override methods in gui::Widget class.
This commit is contained in:
parent
3a1c5e4f6e
commit
efc7effac5
|
@ -315,7 +315,7 @@ public:
|
|||
*/
|
||||
virtual Widget* getChildByName(const char* name);
|
||||
|
||||
virtual void visit();
|
||||
virtual void visit() override;
|
||||
|
||||
/**
|
||||
* Sets the touch event target/selector of the menu item
|
||||
|
@ -333,7 +333,7 @@ public:
|
|||
*
|
||||
* @param position The position (x,y) of the widget in OpenGL coordinates
|
||||
*/
|
||||
void setPosition(const Point &pos);
|
||||
virtual void setPosition(const Point &pos) override;
|
||||
|
||||
/**
|
||||
* Changes the position (x,y) of the widget in OpenGL coordinates
|
||||
|
@ -618,8 +618,8 @@ public:
|
|||
|
||||
Widget* clone();
|
||||
|
||||
virtual void onEnter();
|
||||
virtual void onExit();
|
||||
virtual void onEnter() override;
|
||||
virtual void onExit() override;
|
||||
|
||||
void updateSizeAndPosition();
|
||||
|
||||
|
|
Loading…
Reference in New Issue