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/widgets/selldialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/selldialog.cpp') diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp index 76cea21f2..956cacb2f 100644 --- a/src/gui/widgets/selldialog.cpp +++ b/src/gui/widgets/selldialog.cpp @@ -47,7 +47,7 @@ SellDialog::DialogList SellDialog::instances; -SellDialog::SellDialog(const bool isSell, +SellDialog::SellDialog(const IsSell isSell, const bool advanced) : // TRANSLATORS: sell dialog name Window(_("Sell"), Modal_false, nullptr, "sell.xml"), @@ -122,7 +122,7 @@ void SellDialog::postInit() ContainerPlacer placer; placer = getPlacer(0, 0); - if (mIsSell) + if (mIsSell == IsSell_true) { // TRANSLATORS: sell dialog button mIncreaseButton = new Button(this, _("+"), "inc", this); -- cgit v1.2.3-70-g09d2