diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-07-10 09:15:11 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-07-10 12:41:44 +0200 |
commit | bda88f07780ae541e37015438678999f314a5b2b (patch) | |
tree | d9245a0d73dad9104df734a3330af6283657b726 /include/svl | |
parent | 221c239c339f8f98d1b37cf61dbefa6a93a7e45b (diff) |
Deduplicate code
Change-Id: Ic11e481688401559c2e26cffd625d3b6e3bf2f03
Reviewed-on: https://gerrit.libreoffice.org/57219
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/itemset.hxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx index 87ac1f786f13..d3fa0d17fc8d 100644 --- a/include/svl/itemset.hxx +++ b/include/svl/itemset.hxx @@ -158,11 +158,7 @@ public: } template<class T> const T* GetItem( TypedWhichId<T> nWhich, bool bSearchInParent = true ) const { - 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 - return pCastedItem; + return GetItem<T>(sal_uInt16(nWhich), bSearchInParent); } |