Add "override"

This commit is contained in:
CaiWenzhi 2014-01-20 13:44:44 +08:00
parent f10e1ee04c
commit 223857398d
1 changed files with 4 additions and 4 deletions

View File

@ -134,8 +134,8 @@ public:
* @return LinearGravity * @return LinearGravity
*/ */
LinearGravity getGravity() const; LinearGravity getGravity() const;
virtual LayoutParameter* createCloneInstance(); virtual LayoutParameter* createCloneInstance() override;
virtual void copyProperties(LayoutParameter* model); virtual void copyProperties(LayoutParameter* model) override;
protected: protected:
LinearGravity _linearGravity; LinearGravity _linearGravity;
}; };
@ -209,8 +209,8 @@ public:
*/ */
const char* getRelativeName() const; const char* getRelativeName() const;
virtual LayoutParameter* createCloneInstance(); virtual LayoutParameter* createCloneInstance() override;
virtual void copyProperties(LayoutParameter* model); virtual void copyProperties(LayoutParameter* model) override;
protected: protected:
RelativeAlign _relativeAlign; RelativeAlign _relativeAlign;
std::string _relativeWidgetName; std::string _relativeWidgetName;