summaryrefslogtreecommitdiff
path: root/include/svl/intitem.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svl/intitem.hxx')
-rw-r--r--include/svl/intitem.hxx20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx
index 92999568b7f2..f189388e748e 100644
--- a/include/svl/intitem.hxx
+++ b/include/svl/intitem.hxx
@@ -30,8 +30,9 @@ class SVL_DLLPUBLIC SfxByteItem: public CntByteItem
public:
static SfxPoolItem* CreateDefault();
- explicit SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0):
- CntByteItem(which, nValue) {}
+ explicit SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxByteItemType):
+ CntByteItem(which, nValue, eItemType) {}
virtual SfxByteItem* Clone(SfxItemPool * = nullptr) const override
{ return new SfxByteItem(*this); }
@@ -44,8 +45,9 @@ class SVL_DLLPUBLIC SfxInt16Item: public SfxPoolItem
public:
static SfxPoolItem* CreateDefault();
- explicit SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0):
- SfxPoolItem(which), m_nValue(nTheValue)
+ explicit SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxInt16ItemType):
+ SfxPoolItem(which, eItemType), m_nValue(nTheValue)
{}
virtual bool operator ==(const SfxPoolItem & rItem) const override;
@@ -83,8 +85,9 @@ class SVL_DLLPUBLIC SfxUInt16Item: public CntUInt16Item
public:
static SfxPoolItem* CreateDefault();
- explicit SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
- CntUInt16Item(which, nValue) {}
+ explicit SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxUInt16ItemType):
+ CntUInt16Item(which, nValue, eItemType) {}
virtual SfxUInt16Item* Clone(SfxItemPool * = nullptr) const override
{ return new SfxUInt16Item(*this); }
@@ -99,8 +102,9 @@ class SVL_DLLPUBLIC SfxInt32Item: public CntInt32Item
public:
static SfxPoolItem* CreateDefault();
- explicit SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0):
- CntInt32Item(which, nValue) {}
+ explicit SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxInt32ItemType):
+ CntInt32Item(which, nValue, eItemType) {}
virtual SfxInt32Item* Clone(SfxItemPool * = nullptr) const override
{ return new SfxInt32Item(*this); }