From 7c79aa2b8e484319e3e511fa21db6d2448347024 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Aug 2012 21:18:46 +0300 Subject: Add const to more classes. --- src/gui/npcdialog.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/npcdialog.h') diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index cd5f7fe57..2d7ed5149 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -64,7 +64,7 @@ class NpcDialog : public Window, public gcn::ActionListener, * * @see Window::Window */ - NpcDialog(int npcId); + NpcDialog(const int npcId); ~NpcDialog(); @@ -86,7 +86,7 @@ class NpcDialog : public Window, public gcn::ActionListener, * * @param string The text to add. */ - void addText(const std::string &string, bool save = true); + void addText(const std::string &string, const bool save = true); /** * When called, the widget will show a "Next" button. @@ -155,10 +155,10 @@ class NpcDialog : public Window, public gcn::ActionListener, /** * Requests a interger from the user. */ - void integerRequest(int defaultValue = 0, int min = 0, - int max = 2147483647); + void integerRequest(const int defaultValue = 0, const int min = 0, + const int max = 2147483647); - void move(int amount); + void move(const int amount); void setVisible(bool visible); @@ -192,11 +192,11 @@ class NpcDialog : public Window, public gcn::ActionListener, void refocus(); - void showAvatar(int avatarId); + void showAvatar(const int avatarId); - void setAvatarDirection(uint8_t direction); + void setAvatarDirection(const uint8_t direction); - void setAvatarAction(int actionId); + void setAvatarAction(const int actionId); void logic(); -- cgit v1.2.3-60-g2f50