From 4a5cdfe19cbb50e3b58149c6e91312366ee4b771 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Sep 2012 02:34:48 +0300 Subject: Add override keyword to most overriden methods. --- src/gui/widgets/tab.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/tab.h') diff --git a/src/gui/widgets/tab.h b/src/gui/widgets/tab.h index a8ff5eb3d..6519d5847 100644 --- a/src/gui/widgets/tab.h +++ b/src/gui/widgets/tab.h @@ -49,7 +49,7 @@ class Tab : public gcn::Tab, public gcn::WidgetListener /** * Draw the tabbed area. */ - void draw(gcn::Graphics *graphics); + void draw(gcn::Graphics *graphics) override; /** * Set the normal color for the tab's text. @@ -90,9 +90,9 @@ class Tab : public gcn::Tab, public gcn::WidgetListener int getFlash() const { return mFlash; } - void widgetResized(const gcn::Event &event); + void widgetResized(const gcn::Event &event) override; - void widgetMoved(const gcn::Event &event); + void widgetMoved(const gcn::Event &event) override; void setLabelFont(gcn::Font *const font); @@ -101,6 +101,7 @@ class Tab : public gcn::Tab, public gcn::WidgetListener protected: friend class TabbedArea; + virtual void setCurrent() { } -- cgit v1.2.3-60-g2f50