From 914b7555f6b2b28497f70eaaadc6650961ef7f6b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Dec 2015 19:59:32 +0300 Subject: Add strong typed bool type IsSell. --- src/gui/windows/buyingstoreselldialog.cpp | 2 +- src/gui/windows/eggselectiondialog.cpp | 2 +- src/gui/windows/insertcarddialog.cpp | 2 +- src/gui/windows/npcselldialog.cpp | 2 +- src/gui/windows/shopselldialog.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/buyingstoreselldialog.cpp b/src/gui/windows/buyingstoreselldialog.cpp index af3d9d8ff..bfb3a5ca3 100644 --- a/src/gui/windows/buyingstoreselldialog.cpp +++ b/src/gui/windows/buyingstoreselldialog.cpp @@ -38,7 +38,7 @@ BuyingStoreSellDialog::BuyingStoreSellDialog(const BeingId accountId, const int storeId) : - SellDialog(true, false), + SellDialog(IsSell_true, false), mAccountId(accountId), mStoreId(storeId) { diff --git a/src/gui/windows/eggselectiondialog.cpp b/src/gui/windows/eggselectiondialog.cpp index 266e3519b..03c10a87b 100644 --- a/src/gui/windows/eggselectiondialog.cpp +++ b/src/gui/windows/eggselectiondialog.cpp @@ -36,7 +36,7 @@ #include "debug.h" EggSelectionDialog::EggSelectionDialog() : - SellDialog(false, false) + SellDialog(IsSell_false, false) { // TRANSLATORS: egg selection dialog name setWindowName(_("Select egg")); diff --git a/src/gui/windows/insertcarddialog.cpp b/src/gui/windows/insertcarddialog.cpp index 8620b06f7..7261e0f39 100644 --- a/src/gui/windows/insertcarddialog.cpp +++ b/src/gui/windows/insertcarddialog.cpp @@ -38,7 +38,7 @@ InsertCardDialog::InsertCardDialog(const int itemIndex, const Item *const item) : - SellDialog(false, false), + SellDialog(IsSell_false, false), mItemIndex(itemIndex) { // TRANSLATORS: insert card dialog name diff --git a/src/gui/windows/npcselldialog.cpp b/src/gui/windows/npcselldialog.cpp index ab9ae47d0..98972ef8f 100644 --- a/src/gui/windows/npcselldialog.cpp +++ b/src/gui/windows/npcselldialog.cpp @@ -45,7 +45,7 @@ #include "debug.h" NpcSellDialog::NpcSellDialog(const BeingId npcId) : - SellDialog(true, + SellDialog(IsSell_true, serverFeatures ? serverFeatures->haveAdvancedBuySell() : false), mNpcId(npcId) { diff --git a/src/gui/windows/shopselldialog.cpp b/src/gui/windows/shopselldialog.cpp index 081ffea7f..c14e09fee 100644 --- a/src/gui/windows/shopselldialog.cpp +++ b/src/gui/windows/shopselldialog.cpp @@ -35,7 +35,7 @@ #include "debug.h" ShopSellDialog::ShopSellDialog(const std::string &nick) : - SellDialog(true, false), + SellDialog(IsSell_true, false), mNick(nick) { } -- cgit v1.2.3-70-g09d2