summaryrefslogtreecommitdiff
path: root/include/svl/itemset.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svl/itemset.hxx')
-rw-r--r--include/svl/itemset.hxx15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx
index 3254263c38ab..9291fd430421 100644
--- a/include/svl/itemset.hxx
+++ b/include/svl/itemset.hxx
@@ -135,7 +135,7 @@ public:
template<class T>
const T& Get( TypedWhichId<T> nWhich, bool bSrchInParent = true ) const
{
- return static_cast<const T&>(Get(nWhich.Which(), bSrchInParent));
+ return static_cast<const T&>(Get(sal_uInt16(nWhich), bSrchInParent));
}
/** This method eases accessing single Items in the SfxItemSet.
@@ -157,7 +157,7 @@ public:
}
template<class T> const T* GetItem( TypedWhichId<T> nWhich, bool bSearchInParent = true ) const
{
- const SfxPoolItem* pItem = GetItem(nWhich.Which(), bSearchInParent);
+ const SfxPoolItem* pItem = GetItem(sal_uInt16(nWhich), bSearchInParent);
const T* pCastedItem = dynamic_cast<const T*>(pItem);
assert(!pItem || pCastedItem); // if it exists, must have the correct type
@@ -181,23 +181,12 @@ public:
SfxItemState GetItemState( sal_uInt16 nWhich,
bool bSrchInParent = true,
const SfxPoolItem **ppItem = nullptr ) const;
- template<class T>
- SfxItemState GetItemState( TypedWhichId<T> nWhich,
- bool bSrchInParent = true,
- const SfxPoolItem **ppItem = nullptr ) const
- { return GetItemState(nWhich.Which(), bSrchInParent, ppItem); }
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem** ppItem = nullptr) const;
void DisableItem(sal_uInt16 nWhich);
- template<class T> void DisableItem( TypedWhichId<T> nWhich )
- { DisableItem(nWhich.Which()); }
void InvalidateItem( sal_uInt16 nWhich );
- template<class T> void InvalidateItem( TypedWhichId<T> nWhich )
- { InvalidateItem(nWhich.Which()); }
sal_uInt16 ClearItem( sal_uInt16 nWhich = 0);
- template<class T> sal_uInt16 ClearItem( TypedWhichId<T> nWhich )
- { return ClearItem(nWhich.Which()); }
void ClearInvalidItems();
void InvalidateAllItems(); // HACK(via nWhich = 0) ???