From 067410031057ffc9bdb36b976bc2a658b23acb1b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Feb 2015 00:20:57 +0300 Subject: Add typed bool type Favorite. --- src/gui/windows/itemamountwindow.cpp | 3 ++- src/gui/windows/tradewindow.cpp | 4 ++-- src/gui/windows/tradewindow.h | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui') 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; /** -- cgit v1.2.3-60-g2f50