diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-11 00:20:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-11 00:20:57 +0300 |
commit | 067410031057ffc9bdb36b976bc2a658b23acb1b (patch) | |
tree | ca60538b0a1aef7aabcd2d89250efe98961e85cb /src/gui/windows | |
parent | 7d9f6bd3984c423b89a9f564342cde74f378f8c9 (diff) | |
download | manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.tar.gz manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.tar.bz2 manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.tar.xz manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.zip |
Add typed bool type Favorite.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 3 | ||||
-rw-r--r-- | src/gui/windows/tradewindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/tradewindow.h | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index b2f08db98..f4203092f 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -337,7 +337,8 @@ void ItemAmountWindow::action(const ActionEvent &event) mItem = new Item(id, 0, 10000, 0, 1, Identified_true, Damaged_true, - false, false, false); + Favorite_false, + false, false); if (mUsage == ShopBuyAdd) mMax = 10000; diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index 042c11b74..41bde7c19 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -202,7 +202,7 @@ void TradeWindow::addItem(const int id, const unsigned char color, const Identified identified, const Damaged damaged, - const bool favorite) const + const Favorite favorite) const { Inventory *inv = own ? mMyInventory : mPartnerInventory; inv->addItem(id, type, quantity, refine, color, @@ -219,7 +219,7 @@ void TradeWindow::addItem2(const int id, const unsigned char color, const Identified identified, const Damaged damaged, - const bool favorite, + const Favorite favorite, const bool equipment) const { Inventory *inv = own ? mMyInventory : mPartnerInventory; diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h index 153fb0259..89cf36a6a 100644 --- a/src/gui/windows/tradewindow.h +++ b/src/gui/windows/tradewindow.h @@ -77,7 +77,7 @@ class TradeWindow final : public Window, const unsigned char color, const Identified identified, const Damaged damaged, - const bool favorite) const; + const Favorite favorite) const; /** * Reset both item containers @@ -97,7 +97,7 @@ class TradeWindow final : public Window, const unsigned char color, const Identified identified, const Damaged damaged, - const bool favorite, + const Favorite favorite, const bool equipment) const; /** |