summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-16 15:41:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-17 07:57:52 +0200
commit792886d34bd87ad5e2b3d197e86ab41205a33618 (patch)
tree0551fbd7d72f9165b181bccaaa99407a5f386f13
parent210db2bf9e199f0a58fbd7a629edda63903fabac (diff)
convert basctl::Layout::SplittedSide::Side to scoped enum
and drop unused enumerators Change-Id: I7c8338423eddb64bf4d4138d2613dd393408c9e3
-rw-r--r--basctl/source/basicide/layout.cxx8
-rw-r--r--basctl/source/inc/layout.hxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/layout.cxx b/basctl/source/basicide/layout.cxx
index cf9430592734..b93e50ae3395 100644
--- a/basctl/source/basicide/layout.cxx
+++ b/basctl/source/basicide/layout.cxx
@@ -37,8 +37,8 @@ Layout::Layout (vcl::Window* pParent) :
Window(pParent, WB_CLIPCHILDREN),
pChild(nullptr),
bFirstSize(true),
- aLeftSide(this, SplittedSide::Left),
- aBottomSide(this, SplittedSide::Bottom)
+ aLeftSide(this, SplittedSide::Side::Left),
+ aBottomSide(this, SplittedSide::Side::Bottom)
{
SetBackground(GetSettings().GetStyleSettings().GetWindowColor());
@@ -169,8 +169,8 @@ void Layout::DataChanged (DataChangedEvent const& rDCEvt)
// ctor
Layout::SplittedSide::SplittedSide (Layout* pParent, Side eSide) :
rLayout(*pParent),
- bVertical(eSide == Left || eSide == Right),
- bLower(eSide == Left || eSide == Top),
+ bVertical(eSide == Side::Left),
+ bLower(eSide == Side::Left),
nSize(0),
aSplitter(VclPtr<Splitter>::Create(pParent, bVertical ? WB_HSCROLL : WB_VSCROLL))
{
diff --git a/basctl/source/inc/layout.hxx b/basctl/source/inc/layout.hxx
index 434b6b160856..5b66e4163032 100644
--- a/basctl/source/inc/layout.hxx
+++ b/basctl/source/inc/layout.hxx
@@ -79,7 +79,7 @@ private:
class SplittedSide
{
public:
- enum Side {Right, Top, Left, Bottom};
+ enum class Side {Left, Bottom};
SplittedSide (Layout*, Side);
void Add (DockingWindow*, Size const&);
void Remove (DockingWindow*);