diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-28 01:59:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-28 01:59:04 +0300 |
commit | c79403e1341ac533df1771b866d1f5cee15e12b5 (patch) | |
tree | 5bed6dfb44f7fce0432bd7a7a28d2d23db07ce80 /src/gui/selldialog.h | |
parent | 7c79aa2b8e484319e3e511fa21db6d2448347024 (diff) | |
download | manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.gz manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.bz2 manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.xz manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/selldialog.h')
-rw-r--r-- | src/gui/selldialog.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/selldialog.h b/src/gui/selldialog.h index 8b1d73ce3..5c1e7300d 100644 --- a/src/gui/selldialog.h +++ b/src/gui/selldialog.h @@ -57,7 +57,7 @@ class SellDialog : public Window, * * @see Window::Window */ - SellDialog(int npcId); + SellDialog(const int npcId); /** * Constructor. @@ -79,7 +79,7 @@ class SellDialog : public Window, /** * Adds an item to the inventory. */ - void addItem(const Item *item, int price); + void addItem(const Item *const item, const int price); /** * Called when receiving actions from the widgets. @@ -96,14 +96,15 @@ class SellDialog : public Window, /** * Gives Player's Money amount */ - void setMoney(int amount); + void setMoney(const int amount); /** * Sets the visibility of this window. */ void setVisible(bool visible); - void addItem(int id, unsigned char color, int amount, int price); + void addItem(const int id, const unsigned char color, + const int amount, const int price); /** * Returns true if any instances exist. |