From f3f7879c48fe8e202c3519cd465225645949167e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Feb 2015 13:44:10 +0300 Subject: Add typed bool type Identified. --- src/gui/windows/itemamountwindow.cpp | 4 +++- src/gui/windows/tradewindow.cpp | 4 ++-- src/gui/windows/tradewindow.h | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index fe081a799..27c72a683 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -334,7 +334,9 @@ void ItemAmountWindow::action(const ActionEvent &event) const int id = ItemDB::get(mItemsModal->getElementAt( mItemDropDown->getSelected())).getId(); - mItem = new Item(id, 0, 10000, 0, 1, true, false, false, false, false); + mItem = new Item(id, 0, 10000, 0, 1, + Identified_True, + false, false, false, false); if (mUsage == ShopBuyAdd) mMax = 10000; diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index c15e56f44..b94584f4f 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -200,7 +200,7 @@ void TradeWindow::addItem(const int id, const int quantity, const uint8_t refine, const unsigned char color, - const bool identified, + const Identified identified, const bool damaged, const bool favorite) const { @@ -217,7 +217,7 @@ void TradeWindow::addItem2(const int id, const int quantity, const uint8_t refine, const unsigned char color, - const bool identified, + const Identified identified, const bool damaged, const bool favorite, const bool equipment) const diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h index 1abe4a91f..f48002deb 100644 --- a/src/gui/windows/tradewindow.h +++ b/src/gui/windows/tradewindow.h @@ -23,6 +23,8 @@ #ifndef GUI_WINDOWS_TRADEWINDOW_H #define GUI_WINDOWS_TRADEWINDOW_H +#include "enums/simpletypes.h" + #include "gui/widgets/window.h" #include "listeners/actionlistener.h" @@ -73,7 +75,7 @@ class TradeWindow final : public Window, const int quantity, const uint8_t refine, const unsigned char color, - const bool identified, + const Identified identified, const bool damaged, const bool favorite) const; @@ -93,7 +95,7 @@ class TradeWindow final : public Window, const int quantity, const uint8_t refine, const unsigned char color, - const bool identified, + const Identified identified, const bool damaged, const bool favorite, const bool equipment) const; -- cgit v1.2.3-60-g2f50