From 13e8f68e82713cae2d081a236b260bda12aafa23 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 27 Feb 2013 03:02:17 +0100 Subject: coverity#705698: fix memory leak and add some documentation Change-Id: I082ac7c47a59f1cb0ef4e098739d6c7fa98e3795 --- sfx2/inc/sfx2/app.hxx | 3 +++ sfx2/inc/sfx2/docfile.hxx | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'sfx2/inc') diff --git a/sfx2/inc/sfx2/app.hxx b/sfx2/inc/sfx2/app.hxx index 6fe8bc071809..24c0294211d9 100644 --- a/sfx2/inc/sfx2/app.hxx +++ b/sfx2/inc/sfx2/app.hxx @@ -164,6 +164,9 @@ public: void RemoveDdeTopic( SfxObjectShell* ); // "static" methods + /** + * @param pArgs Takes ownership + */ sal_uIntPtr LoadTemplate( SfxObjectShellLock& xDoc, const String& rFileName, sal_Bool bCopy=sal_True, SfxItemSet* pArgs = 0 ); SfxTemplateDialog* GetTemplateDialog(); Window* GetTopWindow() const; diff --git a/sfx2/inc/sfx2/docfile.hxx b/sfx2/inc/sfx2/docfile.hxx index d4ee981266c1..05b6c915ec2d 100644 --- a/sfx2/inc/sfx2/docfile.hxx +++ b/sfx2/inc/sfx2/docfile.hxx @@ -96,9 +96,15 @@ public: SfxMedium(String const &, StreamMode, void *) SAL_DELETED_FUNCTION; + /** + * @param pSet does NOT take ownership + */ SfxMedium( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const String& rBaseURL, const SfxItemSet* pSet=0 ); + /** + * @param pSet does NOT take ownership + */ SfxMedium( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const String& rBaseURL, const String& rTypeName, -- cgit