From 792886d34bd87ad5e2b3d197e86ab41205a33618 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Feb 2017 15:41:19 +0200 Subject: convert basctl::Layout::SplittedSide::Side to scoped enum and drop unused enumerators Change-Id: I7c8338423eddb64bf4d4138d2613dd393408c9e3 --- basctl/source/basicide/layout.cxx | 8 ++++---- basctl/source/inc/layout.hxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'basctl') 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::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*); -- cgit