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/npcdialog.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/npcdialog.h') diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index 6437311b4..86b6bdabd 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -71,7 +71,7 @@ class NpcDialog final : public Window, public gcn::ActionListener, /** * Called when receiving actions from the widgets. */ - void action(const gcn::ActionEvent &event); + void action(const gcn::ActionEvent &event) override; /** * Sets the text shows in the dialog. @@ -112,17 +112,17 @@ class NpcDialog final : public Window, public gcn::ActionListener, /** * Returns the number of items in the choices list. */ - int getNumberOfElements(); + int getNumberOfElements() override; /** * Returns the name of item number i of the choices list. */ - std::string getElementAt(int i); + std::string getElementAt(int i) override; /** * Returns the image of item number i of the choices list. */ - const Image *getImageAt(int i); + const Image *getImageAt(int i) override; /** * Makes this dialog request a choice selection from the user. @@ -162,7 +162,7 @@ class NpcDialog final : public Window, public gcn::ActionListener, void setVisible(bool visible); - void optionChanged(const std::string &name); + void optionChanged(const std::string &name) override; /** * Returns true if any instances exist. @@ -198,7 +198,7 @@ class NpcDialog final : public Window, public gcn::ActionListener, void setAvatarAction(const int actionId); - void logic(); + void logic() override; void clearRows(); -- cgit v1.2.3-70-g09d2