summaryrefslogtreecommitdiff
path: root/src/gui/windows/okdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 18:40:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 18:40:31 +0300
commite6d251345a48108495d39d82b0ec79deac63d86d (patch)
treee7a8ecf138b30b091146f51e1b13f0e0e7c0359b /src/gui/windows/okdialog.cpp
parent71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (diff)
downloadmv-e6d251345a48108495d39d82b0ec79deac63d86d.tar.gz
mv-e6d251345a48108495d39d82b0ec79deac63d86d.tar.bz2
mv-e6d251345a48108495d39d82b0ec79deac63d86d.tar.xz
mv-e6d251345a48108495d39d82b0ec79deac63d86d.zip
Add strong typed bool type in OkDialog.
Diffstat (limited to 'src/gui/windows/okdialog.cpp')
-rw-r--r--src/gui/windows/okdialog.cpp4
1 files changed, 2 insertions, 2 deletions
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();