diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-17 16:14:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-18 08:49:02 +0200 |
commit | 55b74b454f4fceccfc05406b44919a5276e0b3ae (patch) | |
tree | cf485ebed5d6e290fd1c3ca1d1ba721c75f8f9c5 /include | |
parent | 1cd85a60e3e24aa37015e57581bc2f1e20950f30 (diff) |
convert SdrCaptionType to scoped enum
Change-Id: I5c1a2300ec6b3d9dc3085affa08cc544f46b27d6
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/sxctitm.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/sxctitm.hxx b/include/svx/sxctitm.hxx index 223ac93cbc2d..13cf4073ccd6 100644 --- a/include/svx/sxctitm.hxx +++ b/include/svx/sxctitm.hxx @@ -23,14 +23,14 @@ #include <svx/svddef.hxx> #include <svx/svxdllapi.h> -enum SdrCaptionType {SDRCAPT_TYPE1,SDRCAPT_TYPE2,SDRCAPT_TYPE3,SDRCAPT_TYPE4}; +enum class SdrCaptionType { Type1, Type2, Type3, Type4 }; // class SdrCaptionTypeItem class SVX_DLLPUBLIC SdrCaptionTypeItem: public SfxEnumItem { public: - SdrCaptionTypeItem(SdrCaptionType eStyle=SDRCAPT_TYPE3): SfxEnumItem(SDRATTR_CAPTIONTYPE,sal::static_int_cast< sal_uInt16 >(eStyle)) {} + SdrCaptionTypeItem(SdrCaptionType eStyle=SdrCaptionType::Type3): SfxEnumItem(SDRATTR_CAPTIONTYPE,sal::static_int_cast< sal_uInt16 >(eStyle)) {} SdrCaptionTypeItem(SvStream& rIn) : SfxEnumItem(SDRATTR_CAPTIONTYPE,rIn) {} virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const override; |