diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-10-16 12:06:21 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-10-16 12:12:28 +0200 |
commit | adeefc6295b1cf411b47b9b4213c16effea9d832 (patch) | |
tree | 04eb6620ab4bc1ed72b7c187994c13be30726f52 /include/sfx2/request.hxx | |
parent | sfx items: Introduce a templatized version of SfxItemSet::GetItem(). (diff) | |
download | core-adeefc6295b1cf411b47b9b4213c16effea9d832.tar.gz core-adeefc6295b1cf411b47b9b4213c16effea9d832.zip |
sfx items: Kill the unreadable & misplaced SFX_ITEMSET_ARG too.
Change-Id: I1e0f96dce2b9cf9da32f4f577cf76e1d8824d37a
Diffstat (limited to 'include/sfx2/request.hxx')
-rw-r--r-- | include/sfx2/request.hxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/sfx2/request.hxx b/include/sfx2/request.hxx index 05e89100d1d6..a59a49e3b59e 100644 --- a/include/sfx2/request.hxx +++ b/include/sfx2/request.hxx @@ -78,10 +78,6 @@ public: void AppendItem(const SfxPoolItem &); void RemoveItem( sal_uInt16 nSlotId ); - static const SfxPoolItem* GetItem( const SfxItemSet*, sal_uInt16 nSlotId, - bool bDeep = false, - std::function<bool ( const SfxPoolItem* )> isItemType = nullptr ); - /** Templatized access to the individual parameters of the SfxRequest. Use like: const SfxInt32Item *pPosItem = rReq.GetArg<SfxInt32Item>(SID_POS); @@ -121,15 +117,6 @@ private: const SfxRequest& operator=(const SfxRequest &) = delete; }; -template<class T> bool checkSfxPoolItem(const SfxPoolItem* pItem) -{ - return dynamic_cast<const T*>(pItem) != nullptr; -} - -#define SFX_ITEMSET_ARG(pArgs, pItem, ItemType, nSlotId) \ - const ItemType *pItem = static_cast<const ItemType*>( \ - SfxRequest::GetItem( pArgs, nSlotId, false, checkSfxPoolItem<ItemType> ) ) - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |