summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/xmlfmt.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-25 10:33:48 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-09-25 14:11:23 +0200
commit68af7378074397466c15509a5d813dce69a54a41 (patch)
tree0db6984a4649e0acf32ddc4516aacded7a5d168e /writerperfect/source/writer/exp/xmlfmt.cxx
parent7810858ee6cac233ce5868de1f2ef5de1d443af4 (diff)
EPUB export: don't leak when exceptions are thrown
Additional benefit is that this way we're again in sync with xmloff code. Change-Id: Ifa1dd976fbd2ce04cb47814060508c65e35474ca
Diffstat (limited to 'writerperfect/source/writer/exp/xmlfmt.cxx')
-rw-r--r--writerperfect/source/writer/exp/xmlfmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerperfect/source/writer/exp/xmlfmt.cxx b/writerperfect/source/writer/exp/xmlfmt.cxx
index b3317283f470..f1e501ccc748 100644
--- a/writerperfect/source/writer/exp/xmlfmt.cxx
+++ b/writerperfect/source/writer/exp/xmlfmt.cxx
@@ -26,7 +26,7 @@ XMLStylesContext::XMLStylesContext(XMLImport &rImport, std::map<OUString, librev
{
}
-XMLImportContext *XMLStylesContext::CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
+rtl::Reference<XMLImportContext> XMLStylesContext::CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
{
if (rName == "style:style")
return new XMLStyleContext(mrImport, *this);