summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupitem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-31 22:26:28 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-31 22:26:28 +0300
commitec9116cd7f52e61afc4267b21e35325f4e7fc705 (patch)
tree4daea73098e216464c0de6953733080058ead1c8 /src/gui/widgets/setupitem.cpp
parent8c11a0235e6ed4e3ed6370014cff3cd0322ed6c5 (diff)
downloadmanaverse-ec9116cd7f52e61afc4267b21e35325f4e7fc705.tar.gz
manaverse-ec9116cd7f52e61afc4267b21e35325f4e7fc705.tar.bz2
manaverse-ec9116cd7f52e61afc4267b21e35325f4e7fc705.tar.xz
manaverse-ec9116cd7f52e61afc4267b21e35325f4e7fc705.zip
Add strong typed bool enum separator.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r--src/gui/widgets/setupitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp
index 6e9e2bf96..94e6231f9 100644
--- a/src/gui/widgets/setupitem.cpp
+++ b/src/gui/widgets/setupitem.cpp
@@ -576,7 +576,7 @@ void SetupItemIntTextField::apply(const std::string &eventName)
SetupItemLabel::SetupItemLabel(const std::string &restrict text,
const std::string &restrict description,
SetupTabScroll *restrict const parent,
- const bool separator) :
+ const Separator separator) :
SetupItem(text, description, "", parent, "", "", MainConfig_true),
mLabel(nullptr),
mIsSeparator(separator)
@@ -593,7 +593,7 @@ SetupItemLabel::~SetupItemLabel()
void SetupItemLabel::createControls()
{
- if (mIsSeparator)
+ if (mIsSeparator == Separator_true)
{
const std::string str(" \342\200\225\342\200\225\342\200\225"
"\342\200\225\342\200\225 ");