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/textbox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/textbox.h') diff --git a/src/gui/widgets/textbox.h b/src/gui/widgets/textbox.h index a95fd118a..61cf6f665 100644 --- a/src/gui/widgets/textbox.h +++ b/src/gui/widgets/textbox.h @@ -57,14 +57,14 @@ class TextBox final : public gcn::TextBox /** * Draws the text. */ - inline void draw(gcn::Graphics *graphics) + inline void draw(gcn::Graphics *graphics) override { if (mTextColor) mForegroundColor = *mTextColor; gcn::TextBox::draw(graphics); } - void keyPressed(gcn::KeyEvent& keyEvent); + void keyPressed(gcn::KeyEvent& keyEvent) override; private: int mMinWidth; -- cgit v1.2.3-70-g09d2