From 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 23:40:41 +0300 Subject: Add const to more classes. --- src/gui/tradewindow.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/tradewindow.h') 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 -- cgit v1.2.3-60-g2f50