summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/ControlOOoTContext.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-17 14:47:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-17 16:51:16 +0100
commit21e72c5f1d315068b0aa6afd3b9750c2ad878dcb (patch)
treef93a352182acf4890f0469425526894029323d62 /xmloff/source/transform/ControlOOoTContext.cxx
parentb902432b431d01634c1f56e4758ec236a999650d (diff)
Hold XMLTransformerContext by rtl::Reference
Change-Id: I60b8d422d53d47537996756aa1b7fb3c26f8383a
Diffstat (limited to 'xmloff/source/transform/ControlOOoTContext.cxx')
-rw-r--r--xmloff/source/transform/ControlOOoTContext.cxx12
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;
}