diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-01 14:17:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-03 06:44:41 +0000 |
commit | f091259ad2ec1590714645839668580cd7b8c7c4 (patch) | |
tree | 3bf6b328637358365848bc98a18cbf82ccd4b2d0 /sd | |
parent | d0cc5fcd5bacd8e5e0fa7fe62a78907c2febb867 (diff) |
convert SfxEnumItem to type-safe template class
and drop the SvxChartTextOrientItem class, unused.
Change-Id: I99100837d1beb953450f57b2cda47d165df1620c
Reviewed-on: https://gerrit.libreoffice.org/34747
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/sdattr.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/inc/sdattr.hxx b/sd/inc/sdattr.hxx index b91d85798dcf..da661900de86 100644 --- a/sd/inc/sdattr.hxx +++ b/sd/inc/sdattr.hxx @@ -67,34 +67,34 @@ inline SfxBoolItem makeSdAttrLayerThisPage() return SfxBoolItem( ATTR_LAYER_THISPAGE, false ); } -class DiaEffectItem : public SfxEnumItem +class DiaEffectItem : public SfxEnumItem<sal_uInt16> { public: DiaEffectItem( SvStream& rIn ); virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const override; - sal_uInt16 GetValueCount() const override { return FADE_EFFECT_COUNT; } + sal_uInt16 GetValueCount() const override { return FADE_EFFECT_COUNT; } }; -class DiaSpeedItem : public SfxEnumItem +class DiaSpeedItem : public SfxEnumItem<sal_uInt16> { public: DiaSpeedItem( SvStream& rIn ); virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const override; - sal_uInt16 GetValueCount() const override { return FADE_SPEED_COUNT; } + sal_uInt16 GetValueCount() const override { return FADE_SPEED_COUNT; } }; -class DiaAutoItem : public SfxEnumItem +class DiaAutoItem : public SfxEnumItem<PresChange> { public: DiaAutoItem( SvStream& rIn ); virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const override; - sal_uInt16 GetValueCount() const override { return PRESCHANGE_COUNT; } + sal_uInt16 GetValueCount() const override { return PRESCHANGE_COUNT; } }; #endif // INCLUDED_SD_INC_SDATTR_HXX |