diff options
Diffstat (limited to 'xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx index 667660a92df2..d4b885853e3e 100644 --- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx @@ -277,12 +277,12 @@ void XMLFootnoteConfigurationImportContext::StartElement( } } -SvXMLImportContext *XMLFootnoteConfigurationImportContext::CreateChildContext( +SvXMLImportContextRef XMLFootnoteConfigurationImportContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference<XAttributeList> & xAttrList ) { - SvXMLImportContext* pContext = nullptr; + SvXMLImportContextRef xContext; if (!bIsEndnote) { @@ -291,14 +291,14 @@ SvXMLImportContext *XMLFootnoteConfigurationImportContext::CreateChildContext( if ( IsXMLToken( rLocalName, XML_FOOTNOTE_CONTINUATION_NOTICE_FORWARD ) ) { - pContext = new XMLFootnoteConfigHelper(GetImport(), + xContext = new XMLFootnoteConfigHelper(GetImport(), nPrefix, rLocalName, *this, false); } else if ( IsXMLToken( rLocalName, XML_FOOTNOTE_CONTINUATION_NOTICE_BACKWARD ) ) { - pContext = new XMLFootnoteConfigHelper(GetImport(), + xContext = new XMLFootnoteConfigHelper(GetImport(), nPrefix, rLocalName, *this, true); } @@ -308,15 +308,15 @@ SvXMLImportContext *XMLFootnoteConfigurationImportContext::CreateChildContext( } // else: endnote -> default context - if (pContext == nullptr) + if (!xContext) { // default: delegate to super class - pContext = SvXMLStyleContext::CreateChildContext(nPrefix, + xContext = SvXMLStyleContext::CreateChildContext(nPrefix, rLocalName, xAttrList); } - return pContext; + return xContext; } // Rename method <CreateAndInsertLate(..)> to <Finish(..)> (#i40597#) |