diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-12 08:33:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-18 14:23:50 +0200 |
commit | 1f11bd90b6d43eee382d54a3041b1e1eb2a6af27 (patch) | |
tree | 635dea68d23e721cce61a4746d66a713fff04931 /sw/inc | |
parent | 6761c5114a800fad08b87fa56d611f7483b9a615 (diff) |
convert SidebarPosition to enum class
Change-Id: Id3da97083a8e30a32712443485b3801a8891a1db
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/PostItMgr.hxx | 2 | ||||
-rw-r--r-- | sw/inc/SidebarWindowsTypes.hxx | 8 | ||||
-rw-r--r-- | sw/inc/postithelper.hxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx index f72357a3f99a..f880d609b34a 100644 --- a/sw/inc/PostItMgr.hxx +++ b/sw/inc/PostItMgr.hxx @@ -73,7 +73,7 @@ struct SwPostItPageItem long lOffset; SwRect mPageRect; SwSidebarItem_list* mList; - SwPostItPageItem(): bScrollbar(false), eSidebarPosition( sw::sidebarwindows::SIDEBAR_LEFT ), lOffset(0) + SwPostItPageItem(): bScrollbar(false), eSidebarPosition( sw::sidebarwindows::SidebarPosition::LEFT ), lOffset(0) { mList = new SwSidebarItem_list; } diff --git a/sw/inc/SidebarWindowsTypes.hxx b/sw/inc/SidebarWindowsTypes.hxx index 28d1e5891ff1..b041c3f32a2f 100644 --- a/sw/inc/SidebarWindowsTypes.hxx +++ b/sw/inc/SidebarWindowsTypes.hxx @@ -29,11 +29,11 @@ enum class ViewState EDIT }; -enum SidebarPosition +enum class SidebarPosition { - SIDEBAR_LEFT, // sidebar on left side - SIDEBAR_RIGHT, // sidebar on right side - SIDEBAR_NONE // sidebar on neither side + LEFT, // sidebar on left side + RIGHT, // sidebar on right side + NONE // sidebar on neither side }; } } // end of namespace sw::sidebarwindows diff --git a/sw/inc/postithelper.hxx b/sw/inc/postithelper.hxx index 10bc05fed989..80b26ac520e6 100644 --- a/sw/inc/postithelper.hxx +++ b/sw/inc/postithelper.hxx @@ -64,7 +64,7 @@ struct SwLayoutInfo , mPageFrame() , mPagePrtArea() , mnPageNumber(1) - , meSidebarPosition(sw::sidebarwindows::SIDEBAR_NONE) + , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE) , mRedlineAuthor(0) {} }; |