diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-17 14:47:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-17 16:51:16 +0100 |
commit | 21e72c5f1d315068b0aa6afd3b9750c2ad878dcb (patch) | |
tree | f93a352182acf4890f0469425526894029323d62 /xmloff/source/transform/ControlOOoTContext.cxx | |
parent | b902432b431d01634c1f56e4758ec236a999650d (diff) |
Hold XMLTransformerContext by rtl::Reference
Change-Id: I60b8d422d53d47537996756aa1b7fb3c26f8383a
Diffstat (limited to 'xmloff/source/transform/ControlOOoTContext.cxx')
-rw-r--r-- | xmloff/source/transform/ControlOOoTContext.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/transform/ControlOOoTContext.cxx b/xmloff/source/transform/ControlOOoTContext.cxx index bff9ace673d3..1961da430869 100644 --- a/xmloff/source/transform/ControlOOoTContext.cxx +++ b/xmloff/source/transform/ControlOOoTContext.cxx @@ -48,19 +48,19 @@ void XMLControlOOoTransformerContext::StartElement( m_xAttrList = new XMLMutableAttributeList( rAttrList, true ); } -XMLTransformerContext *XMLControlOOoTransformerContext::CreateChildContext( +rtl::Reference<XMLTransformerContext> XMLControlOOoTransformerContext::CreateChildContext( sal_uInt16 /*nPrefix*/, const OUString& /*rLocalName*/, const OUString& rQName, const Reference< XAttributeList >& rAttrList ) { - XMLTransformerContext *pContext = nullptr; + rtl::Reference<XMLTransformerContext> pContext; if( m_aElemQName.isEmpty() ) { - pContext = new XMLIgnoreTransformerContext( GetTransformer(), + pContext.set(new XMLIgnoreTransformerContext( GetTransformer(), rQName, - false, false ); + false, false )); m_aElemQName = rQName; static_cast< XMLMutableAttributeList * >( m_xAttrList.get() ) ->AppendAttributeList( rAttrList ); @@ -72,9 +72,9 @@ XMLTransformerContext *XMLControlOOoTransformerContext::CreateChildContext( } else { - pContext = new XMLIgnoreTransformerContext( GetTransformer(), + pContext.set(new XMLIgnoreTransformerContext( GetTransformer(), rQName, - true, true ); + true, true )); } return pContext; } |