From ec9116cd7f52e61afc4267b21e35325f4e7fc705 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Oct 2015 22:26:28 +0300 Subject: Add strong typed bool enum separator. --- src/gui/widgets/setupitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/setupitem.cpp') 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 "); -- cgit v1.2.3-70-g09d2