summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-10 13:44:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-10 22:49:59 +0300
commitf3f7879c48fe8e202c3519cd465225645949167e (patch)
tree898a86c3446d988e86d7c3f160036533bdfd6475 /src/gui/windows
parent37d7bd3163ad58391df36363b6f0135c638fbeb8 (diff)
downloadplus-f3f7879c48fe8e202c3519cd465225645949167e.tar.gz
plus-f3f7879c48fe8e202c3519cd465225645949167e.tar.bz2
plus-f3f7879c48fe8e202c3519cd465225645949167e.tar.xz
plus-f3f7879c48fe8e202c3519cd465225645949167e.zip
Add typed bool type Identified.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/itemamountwindow.cpp4
-rw-r--r--src/gui/windows/tradewindow.cpp4
-rw-r--r--src/gui/windows/tradewindow.h6
3 files changed, 9 insertions, 5 deletions
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;