Adds override keyword for some override methods in gui::Widget class.

This commit is contained in:
James Chen 2014-01-02 14:20:52 +08:00
parent 3a1c5e4f6e
commit efc7effac5
1 changed files with 4 additions and 4 deletions

View File

@ -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();