diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-27 21:18:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-27 21:44:17 +0300 |
commit | 7c79aa2b8e484319e3e511fa21db6d2448347024 (patch) | |
tree | 3c4fb4e72414dd8c0d93401a6bf2cc86b65a34a0 /src/gui/npcdialog.h | |
parent | de476bb95242e10c833394ef007728072eabe60f (diff) | |
download | ManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz ManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2 ManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz ManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r-- | src/gui/npcdialog.h | 16 |
1 files changed, 8 insertions, 8 deletions
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(); |