summaryrefslogtreecommitdiff
path: root/src/gui/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/tradewindow.cpp
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
ManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
ManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
ManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r--src/gui/tradewindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp
index 56ba3aa7b..e2db704f6 100644
--- a/src/gui/tradewindow.cpp
+++ b/src/gui/tradewindow.cpp
@@ -172,7 +172,7 @@ void TradeWindow::setMoney(const int amount)
}
void TradeWindow::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
{
if (own)
mMyInventory->addItem(id, quantity, refine, color);
@@ -182,7 +182,7 @@ void TradeWindow::addItem(const int id, const bool own, const int quantity,
void TradeWindow::addItem2(const int id, const bool own, const int quantity,
const int refine, const unsigned char color,
- const bool equipment)
+ const bool equipment) const
{
if (own)
mMyInventory->addItem(id, quantity, refine, color, equipment);
@@ -191,7 +191,7 @@ void TradeWindow::addItem2(const int id, const bool own, const int quantity,
}
void TradeWindow::changeQuantity(const int index, const bool own,
- const int quantity)
+ const int quantity) const
{
if (own)
{
@@ -206,7 +206,7 @@ void TradeWindow::changeQuantity(const int index, const bool own,
}
void TradeWindow::increaseQuantity(const int index, const bool own,
- const int quantity)
+ const int quantity) const
{
if (own)
{
@@ -254,7 +254,7 @@ void TradeWindow::receivedOk(const bool own)
}
void TradeWindow::tradeItem(Item *const item, const int quantity,
- const bool check)
+ const bool check) const
{
if (check && !checkItem(item))
return;