From 442df6cf8345f8029d5a3b470bc4981a5aa2bf20 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 21 Sep 2017 12:12:33 +0100 Subject: ofz: don't leak in face of exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic15590a13bd3770ee5dd7db76b21c830a4fe73e2 Reviewed-on: https://gerrit.libreoffice.org/42587 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- xmloff/source/xforms/TokenContext.cxx | 2 +- xmloff/source/xforms/TokenContext.hxx | 2 +- xmloff/source/xforms/XFormsInstanceContext.cxx | 2 +- xmloff/source/xforms/XFormsInstanceContext.hxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xmloff/source/xforms') diff --git a/xmloff/source/xforms/TokenContext.cxx b/xmloff/source/xforms/TokenContext.cxx index 22dd5747c895..3af25dc965e7 100644 --- a/xmloff/source/xforms/TokenContext.cxx +++ b/xmloff/source/xforms/TokenContext.cxx @@ -84,7 +84,7 @@ void TokenContext::StartElement( } } -SvXMLImportContext* TokenContext::CreateChildContext( +SvXMLImportContextRef TokenContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference& xAttrList ) diff --git a/xmloff/source/xforms/TokenContext.hxx b/xmloff/source/xforms/TokenContext.hxx index fe26c740488a..97b595232726 100644 --- a/xmloff/source/xforms/TokenContext.hxx +++ b/xmloff/source/xforms/TokenContext.hxx @@ -60,7 +60,7 @@ public: * create a warning for all others. Classes that wish to override * CreateChildContext may want to call the parent method for * handling of defaults. */ - virtual SvXMLImportContext* CreateChildContext( + virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const css::uno::Reference& xAttrList ) override; diff --git a/xmloff/source/xforms/XFormsInstanceContext.cxx b/xmloff/source/xforms/XFormsInstanceContext.cxx index 62792c1926f6..8ba624b2cb5f 100644 --- a/xmloff/source/xforms/XFormsInstanceContext.cxx +++ b/xmloff/source/xforms/XFormsInstanceContext.cxx @@ -65,7 +65,7 @@ XFormsInstanceContext::XFormsInstanceContext( SAL_WARN_IF( !mxModel.is(), "xmloff", "need model" ); } -SvXMLImportContext* XFormsInstanceContext::CreateChildContext( +SvXMLImportContextRef XFormsInstanceContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference& ) diff --git a/xmloff/source/xforms/XFormsInstanceContext.hxx b/xmloff/source/xforms/XFormsInstanceContext.hxx index 1bcdd16883d7..df77d00a7e18 100644 --- a/xmloff/source/xforms/XFormsInstanceContext.hxx +++ b/xmloff/source/xforms/XFormsInstanceContext.hxx @@ -52,7 +52,7 @@ public: // arbitrary DOM elements. For the attributes, we use the // TokenContext mechanism. - virtual SvXMLImportContext* CreateChildContext( + virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const css::uno::Reference& xAttrList ) override; -- cgit