summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-11 00:20:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-11 00:20:57 +0300
commit067410031057ffc9bdb36b976bc2a658b23acb1b (patch)
treeca60538b0a1aef7aabcd2d89250efe98961e85cb /src/gui/windows
parent7d9f6bd3984c423b89a9f564342cde74f378f8c9 (diff)
downloadmanaplus-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.cpp3
-rw-r--r--src/gui/windows/tradewindow.cpp4
-rw-r--r--src/gui/windows/tradewindow.h4
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;
/**