diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-19 10:37:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-19 12:47:14 +0200 |
commit | 99e95346ac33f2d04536ab6c268936ab8b822b42 (patch) | |
tree | c72423b6708122c223e4c52394a550cc2180a7df /sw/inc/ndhints.hxx | |
parent | 9049c94b32f00b8239cd2b50e5ac29dabf41cb61 (diff) |
convert CopyOrNewType to scoped enum
Change-Id: I4bc01dfbf3305e7eaa0887444e894d14e9e4d092
Diffstat (limited to 'sw/inc/ndhints.hxx')
-rw-r--r-- | sw/inc/ndhints.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx index 5d5c57fdcd81..6643a6a920c3 100644 --- a/sw/inc/ndhints.hxx +++ b/sw/inc/ndhints.hxx @@ -33,10 +33,7 @@ class SfxPoolItem; class SfxItemSet; class SwDoc; -typedef enum { - COPY = int(true), - NEW = int(false), -} CopyOrNew_t; +enum class CopyOrNewType { Copy, New }; /// if COPY then pTextNode must be given! SwTextAttr * MakeTextAttr( @@ -44,7 +41,7 @@ SwTextAttr * MakeTextAttr( SfxPoolItem & rNew, sal_Int32 const nStt, sal_Int32 const nEnd, - CopyOrNew_t const bIsCopy = NEW, + CopyOrNewType const bIsCopy = CopyOrNewType::New, SwTextNode *const pTextNode = nullptr ); SwTextAttr * MakeTextAttr( |