diff options
Diffstat (limited to 'xmloff/source/text/XMLIndexBodyContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexBodyContext.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xmloff/source/text/XMLIndexBodyContext.cxx b/xmloff/source/text/XMLIndexBodyContext.cxx index b739093b595d..25c01a7db135 100644 --- a/xmloff/source/text/XMLIndexBodyContext.cxx +++ b/xmloff/source/text/XMLIndexBodyContext.cxx @@ -48,11 +48,7 @@ SvXMLImportContextRef XMLIndexBodyContext::CreateChildContext( // return text content (if possible) SvXMLImportContext* pContext = GetImport().GetTextImport()->CreateTextChildContext( GetImport(), nPrefix, rLocalName, xAttrList, XMLTextType::Section ); - if (nullptr == pContext) - { - pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName ); - } - else + if (pContext) bHasContent = true; return pContext; |