From b65335564647705092d58dc0e9de92fb01c6262a Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 28 Feb 2013 08:15:52 +0100 Subject: coverity#705637: fix memory leak and add documentation Change-Id: If06ef8c78a7d3910be3f3d46dca090a4568b5fe7 --- sfx2/inc/sfx2/bindings.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sfx2') diff --git a/sfx2/inc/sfx2/bindings.hxx b/sfx2/inc/sfx2/bindings.hxx index a13497566aa0..73fce08a118e 100644 --- a/sfx2/inc/sfx2/bindings.hxx +++ b/sfx2/inc/sfx2/bindings.hxx @@ -151,6 +151,9 @@ public: const SfxSlot* GetSlot( sal_uInt16 nMsgId ); SfxStateCache* GetStateCache( sal_uInt16 nId, sal_uInt16 *pPos = 0 ); SAL_DLLPRIVATE SfxStateCache* GetAnyStateCache_Impl( sal_uInt16 nId ); + /** + * @param rpState the caller has to delete the pointer + */ SfxItemState QueryState( sal_uInt16 nSID, SfxPoolItem* &rpState ); const SfxPoolItem* ExecuteSynchron( sal_uInt16 nSlot, -- cgit