From efc7effac58d3accad583fb4203abf026b133bb1 Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 2 Jan 2014 14:20:52 +0800 Subject: [PATCH] Adds override keyword for some override methods in gui::Widget class. --- cocos/gui/UIWidget.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cocos/gui/UIWidget.h b/cocos/gui/UIWidget.h index 379fc04003..f48210038e 100644 --- a/cocos/gui/UIWidget.h +++ b/cocos/gui/UIWidget.h @@ -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();