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.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/setupitem.h') diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h index 80b7658ba..0d817a4b4 100644 --- a/src/gui/widgets/setupitem.h +++ b/src/gui/widgets/setupitem.h @@ -23,6 +23,7 @@ #include "enums/simpletypes/mainconfig.h" #include "enums/simpletypes/usebase64.h" +#include "enums/simpletypes/separator.h" #include "gui/widgets/widget2.h" @@ -284,7 +285,7 @@ class SetupItemLabel final : public SetupItem SetupItemLabel(const std::string &restrict text, const std::string &restrict description, SetupTabScroll *restrict const parent, - const bool separator = true); + const Separator separator = Separator_true); A_DELETE_COPY(SetupItemLabel) @@ -302,7 +303,7 @@ class SetupItemLabel final : public SetupItem protected: Label *mLabel; - bool mIsSeparator; + Separator mIsSeparator; }; class SetupItemDropDown final : public SetupItem -- cgit v1.2.3-70-g09d2