From e6d251345a48108495d39d82b0ec79deac63d86d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 May 2015 18:40:31 +0300 Subject: Add strong typed bool type in OkDialog. --- src/gui/windows/okdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/okdialog.cpp') diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp index 1f77af3f9..1a6c0c3c8 100644 --- a/src/gui/windows/okdialog.cpp +++ b/src/gui/windows/okdialog.cpp @@ -39,7 +39,7 @@ OkDialog::OkDialog(const std::string &restrict title, const std::string &restrict button, const int soundEvent, const Modal modal, - const bool showCenter, + const ShowCenter showCenter, Window *const parent, const int minWidth) : Window(title, modal, parent, "ok.xml"), @@ -73,7 +73,7 @@ OkDialog::OkDialog(const std::string &restrict title, add(mTextBox); add(okButton); - if (showCenter) + if (showCenter == ShowCenter_true) center(); else centerHorisontally(); -- cgit v1.2.3-70-g09d2