diff options
Diffstat (limited to 'xmloff/source/text/XMLTextPropertySetContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextPropertySetContext.cxx | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/xmloff/source/text/XMLTextPropertySetContext.cxx b/xmloff/source/text/XMLTextPropertySetContext.cxx index 1dbe2f79c5f1..f25929e9dfaa 100644 --- a/xmloff/source/text/XMLTextPropertySetContext.cxx +++ b/xmloff/source/text/XMLTextPropertySetContext.cxx @@ -49,25 +49,25 @@ XMLTextPropertySetContext::~XMLTextPropertySetContext() { } -SvXMLImportContext *XMLTextPropertySetContext::CreateChildContext( +SvXMLImportContextRef XMLTextPropertySetContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< xml::sax::XAttributeList > & xAttrList, ::std::vector< XMLPropertyState > &rProperties, const XMLPropertyState& rProp ) { - SvXMLImportContext *pContext = nullptr; + SvXMLImportContextRef xContext; switch( mxMapper->getPropertySetMapper() ->GetEntryContextId( rProp.mnIndex ) ) { case CTF_TABSTOP: - pContext = new SvxXMLTabStopImportContext( GetImport(), nPrefix, + xContext = new SvxXMLTabStopImportContext( GetImport(), nPrefix, rLocalName, rProp, rProperties ); break; case CTF_TEXTCOLUMNS: - pContext = new XMLTextColumnsContext( GetImport(), nPrefix, + xContext = new XMLTextColumnsContext( GetImport(), nPrefix, rLocalName, xAttrList, rProp, rProperties ); break; @@ -85,7 +85,7 @@ SvXMLImportContext *XMLTextPropertySetContext::CreateChildContext( rProp.mnIndex-2, rProperties ); rDropCapTextStyleName = pDCContext->GetStyleName(); - pContext = pDCContext; + xContext = pDCContext; } break; @@ -107,7 +107,7 @@ SvXMLImportContext *XMLTextPropertySetContext::CreateChildContext( rProp.mnIndex-3 ) ) ) nTranspIndex = rProp.mnIndex-3; - pContext = + xContext = new XMLBackgroundImageContext( GetImport(), nPrefix, rLocalName, xAttrList, rProp, @@ -120,19 +120,18 @@ SvXMLImportContext *XMLTextPropertySetContext::CreateChildContext( break; case CTF_SECTION_FOOTNOTE_END: case CTF_SECTION_ENDNOTE_END: - pContext = new XMLSectionFootnoteConfigImport( + xContext = new XMLSectionFootnoteConfigImport( GetImport(), nPrefix, rLocalName, rProperties, mxMapper->getPropertySetMapper()); break; } - if( !pContext ) - pContext = SvXMLPropertySetContext::CreateChildContext( nPrefix, rLocalName, + if (!xContext) + xContext = SvXMLPropertySetContext::CreateChildContext( nPrefix, rLocalName, xAttrList, rProperties, rProp ); - return pContext; + return xContext; } - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |