summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-10 12:37:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-13 08:17:42 +0200
commit21b5c88398972bb535aecad72ef02dbb7e0d2b22 (patch)
treee0888860e4fc16cfce537c7fa90b9533bb0de7e6 /sw/inc
parent62232e60bf2e87b216abd8cd22d5f5acc4338c57 (diff)
convert SectionSort to scoped enum
and drop read-only SORTSECT_NAME enumerator Change-Id: Ibb192b0857161560a666e6ffdc2125bc6fc552c5
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/section.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx
index 1824460a5b0f..8c4ee8eee2f7 100644
--- a/sw/inc/section.hxx
+++ b/sw/inc/section.hxx
@@ -265,7 +265,7 @@ class SwSectionFrameMoveAndDeleteHint : public SfxHint
const bool mbSaveContent;
};
-enum SectionSort { SORTSECT_NOT, SORTSECT_NAME, SORTSECT_POS };
+enum class SectionSort { Not, Pos };
class SW_DLLPUBLIC SwSectionFormat
: public SwFrameFormat
@@ -305,7 +305,7 @@ public:
// - sorted according to name or position or unsorted
// - all of them or only those that are in the normal Nodes-array.
void GetChildSections( SwSections& rArr,
- SectionSort eSort = SORTSECT_NOT,
+ SectionSort eSort = SectionSort::Not,
bool bAllSections = true ) const;
// Query whether section is in Nodes-array or in UndoNodes-array.