summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-14 23:43:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-14 23:43:54 +0300
commit15a79eee1b3baa91953daf33dc021a1e7c147365 (patch)
tree21fc078237a8c635308c1e84e0bba869918ba3d5 /src/gui/windows
parente1841e31c606f1d97ea54c3f00f3380db814f3d2 (diff)
downloadmv-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.gz
mv-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.bz2
mv-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.xz
mv-15a79eee1b3baa91953daf33dc021a1e7c147365.zip
Change refine type to uint8_t.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/tradewindow.cpp9
-rw-r--r--src/gui/windows/tradewindow.h4
2 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 1fccb0c0b..21144b341 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -191,8 +191,11 @@ void TradeWindow::setMoney(const int amount)
mMoneyLabel->adjustSize();
}
-void TradeWindow::addItem(const int id, const bool own, const int quantity,
- const int refine, const unsigned char color) const
+void TradeWindow::addItem(const int id,
+ const bool own,
+ const int quantity,
+ const uint8_t refine,
+ const unsigned char color) const
{
if (own)
mMyInventory->addItem(id, quantity, refine, color);
@@ -201,7 +204,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 uint8_t refine, const unsigned char color,
const bool equipment) const
{
if (own)
diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h
index 447e99144..0c01c81cd 100644
--- a/src/gui/windows/tradewindow.h
+++ b/src/gui/windows/tradewindow.h
@@ -68,7 +68,7 @@ class TradeWindow final : 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;
+ const uint8_t refine, const unsigned char color) const;
/**
* Reset both item containers
@@ -79,7 +79,7 @@ class TradeWindow final : public Window,
* Add an item to the trade window.
*/
void addItem2(const int id, const bool own, const int quantity,
- const int refine, const unsigned char color,
+ const uint8_t refine, const unsigned char color,
const bool equipment) const;
/**