summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-22 02:34:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-22 21:22:21 +0300
commit4a5cdfe19cbb50e3b58149c6e91312366ee4b771 (patch)
tree7a2bbae95b5f6642731f2a1257913baad71d028d /src/gui/npcdialog.h
parent3dcf21babe03cee5080a25e787e1d7e72124288e (diff)
downloadmanaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz
manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2
manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz
manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip
Add override keyword to most overriden methods.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r--src/gui/npcdialog.h12
1 files changed, 6 insertions, 6 deletions
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();