diff options
Diffstat (limited to 'xmloff/source/transform/CreateElemTContext.cxx')
-rw-r--r-- | xmloff/source/transform/CreateElemTContext.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xmloff/source/transform/CreateElemTContext.cxx b/xmloff/source/transform/CreateElemTContext.cxx index e39864636bde..2a39c9a69bc3 100644 --- a/xmloff/source/transform/CreateElemTContext.cxx +++ b/xmloff/source/transform/CreateElemTContext.cxx @@ -87,13 +87,11 @@ void XMLCreateElemTransformerContext::StartElement( (*aIter).second.GetQNamePrefixFromParam1(), ::xmloff::token::GetXMLToken( (*aIter).second.GetQNameTokenFromParam1()) ) ); - XMLTransformerContext *pContext = + rtl::Reference<XMLTransformerContext> pContext( new XMLPersTextContentTContext( GetTransformer(), - aElemQName ); + aElemQName )); pContext->Characters( rAttrValue ); - XMLTransformerContextVector::value_type aVal( - pContext ); - aChildContexts.push_back( aVal ); + aChildContexts.push_back(pContext); pMutableAttrList->RemoveAttributeByIndex( i ); --i; --nAttrCount; |