diff options
Diffstat (limited to 'xmloff/source/transform/MetaTContext.cxx')
-rw-r--r-- | xmloff/source/transform/MetaTContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/transform/MetaTContext.cxx b/xmloff/source/transform/MetaTContext.cxx index f029cdfaee2a..8dea091fd10d 100644 --- a/xmloff/source/transform/MetaTContext.cxx +++ b/xmloff/source/transform/MetaTContext.cxx @@ -67,18 +67,18 @@ XMLMetaTransformerContext::~XMLMetaTransformerContext() { } -XMLTransformerContext *XMLMetaTransformerContext::CreateChildContext( +rtl::Reference<XMLTransformerContext> XMLMetaTransformerContext::CreateChildContext( sal_uInt16 /*nPrefix*/, const OUString& rLocalName, const OUString& rQName, const Reference< XAttributeList >& ) { - XMLPersTextContentTContext *pContext = - new XMLPersTextContentTContext( GetTransformer(), rQName ); + rtl::Reference<XMLPersTextContentTContext> pContext( + new XMLPersTextContentTContext( GetTransformer(), rQName )); XMLMetaContexts_Impl::value_type aVal( rLocalName, pContext ); m_aContexts.insert( aVal ); - return pContext; + return pContext.get(); } void XMLMetaTransformerContext::EndElement() |