diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
commit | 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch) | |
tree | 68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/tradewindow.h | |
parent | 41044107cc0a17125ebd806c9934b6eb636dafe6 (diff) | |
download | manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2 manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/tradewindow.h')
-rw-r--r-- | src/gui/tradewindow.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/tradewindow.h b/src/gui/tradewindow.h index 09c918794..892255fb6 100644 --- a/src/gui/tradewindow.h +++ b/src/gui/tradewindow.h @@ -71,7 +71,7 @@ class TradeWindow : public Window, * Add an item to the trade window. */ void addItem(const int id, const bool own, const int quantity, - const int refine, const unsigned char color); + const int refine, const unsigned char color) const; /** * Reset both item containers @@ -83,18 +83,18 @@ class TradeWindow : public Window, */ void addItem2(const int id, const bool own, const int quantity, const int refine, const unsigned char color, - const bool equipment); + const bool equipment) const; /** * Change quantity of an item. */ void changeQuantity(const int index, const bool own, - const int quantity); + const int quantity) const; /** * Increase quantity of an item. */ - void increaseQuantity(int index, bool own, int quantity); + void increaseQuantity(int index, bool own, int quantity) const; /** * Player received ok message from server @@ -105,7 +105,7 @@ class TradeWindow : public Window, * Send trade packet. */ void tradeItem(Item *const item, const int quantity, - const bool check = false); + const bool check = false) const; /** * Updates the labels and makes sure only one item is selected in |