diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-11 10:43:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-11 15:45:17 +0100 |
commit | e21c3bec9de9d0a9b03aef330e48dcf5070ba73b (patch) | |
tree | 6194784225ddbd9a60c4f3cca774c3682188b108 /sw/inc | |
parent | 79f80e21022f897de27ba37c516bb0e6e64693ce (diff) |
convert FrameControlType to scoped enum
Change-Id: Ic74fcf0c8f7c671de5187bdee284bb43c7299d1f
Reviewed-on: https://gerrit.libreoffice.org/84923
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/swtypes.hxx | 2 | ||||
-rw-r--r-- | sw/inc/viewsh.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/swtypes.hxx b/sw/inc/swtypes.hxx index 1bb96fb329e9..fe22c3d5cab2 100644 --- a/sw/inc/swtypes.hxx +++ b/sw/inc/swtypes.hxx @@ -243,7 +243,7 @@ enum PrepareHint PREP_ERGOSUM, // Needed because of movement in FootnoteFrames. Check QuoVadis/ErgoSum. }; -enum FrameControlType +enum class FrameControlType { PageBreak, Header, diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index dc6472b060cd..cae19ebda3f6 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -563,7 +563,7 @@ public: void ToggleHeaderFooterEdit(); /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit; } - bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == Header)? mbShowHeaderSeparator: mbShowFooterSeparator; } + bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == FrameControlType::Header)? mbShowHeaderSeparator: mbShowFooterSeparator; } virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow ); bool IsSelectAll() const { return mbSelectAll; } |