summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-01 14:17:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-03 06:44:41 +0000
commitf091259ad2ec1590714645839668580cd7b8c7c4 (patch)
tree3bf6b328637358365848bc98a18cbf82ccd4b2d0 /svl
parentd0cc5fcd5bacd8e5e0fa7fe62a78907c2febb867 (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 'svl')
-rw-r--r--svl/source/items/aeitem.cxx2
-rw-r--r--svl/source/items/cenumitm.cxx32
2 files changed, 2 insertions, 32 deletions
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx
index 7f17698eb62a..00c6149a55eb 100644
--- a/svl/source/items/aeitem.cxx
+++ b/svl/source/items/aeitem.cxx
@@ -35,7 +35,7 @@ class SfxAllEnumValueArr : public std::vector<SfxAllEnumValue_Impl> {};
SfxAllEnumItem::SfxAllEnumItem() :
- SfxEnumItem(),
+ SfxEnumItem<sal_uInt16>(0, 0),
pValues( nullptr ),
pDisabledValues( nullptr )
{
diff --git a/svl/source/items/cenumitm.cxx b/svl/source/items/cenumitm.cxx
index 55d3fbe3aaf4..8e91217935f4 100644
--- a/svl/source/items/cenumitm.cxx
+++ b/svl/source/items/cenumitm.cxx
@@ -101,38 +101,8 @@ bool SfxEnumItemInterface::GetBoolValue() const
void SfxEnumItemInterface::SetBoolValue(bool)
{}
-SfxEnumItem::SfxEnumItem(sal_uInt16 const nWhich, SvStream & rStream)
- : SfxEnumItemInterface(nWhich)
-{
- m_nValue = 0;
- rStream.ReadUInt16( m_nValue );
-}
-
-
-// virtual
-SvStream & SfxEnumItem::Store(SvStream & rStream, sal_uInt16) const
-{
- rStream.WriteUInt16( m_nValue );
- return rStream;
-}
-
-// virtual
-sal_uInt16 SfxEnumItem::GetEnumValue() const
-{
- return GetValue();
-}
-// virtual
-void SfxEnumItem::SetEnumValue(sal_uInt16 const nTheValue)
-{
- SetValue(nTheValue);
-}
-
-void SfxEnumItem::SetValue(sal_uInt16 const nTheValue)
-{
- assert(GetRefCount() == 0 && "SfxEnumItem::SetValue(): Pooled item");
- m_nValue = nTheValue;
-}
+template class SfxEnumItem<sal_uInt16>;
SfxPoolItem* SfxBoolItem::CreateDefault()
{