summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmltext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/xml/xmltext.cxx')
-rw-r--r--sw/source/filter/xml/xmltext.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/filter/xml/xmltext.cxx b/sw/source/filter/xml/xmltext.cxx
index 690c3cac4d8d..5514d9cc0efe 100644
--- a/sw/source/filter/xml/xmltext.cxx
+++ b/sw/source/filter/xml/xmltext.cxx
@@ -58,8 +58,6 @@ SvXMLImportContextRef SwXMLBodyContentContext_Impl::CreateChildContext(
SvXMLImportContext *pContext = GetSwImport().GetTextImport()->CreateTextChildContext(
GetImport(), nPrefix, rLocalName, xAttrList,
XMLTextType::Body );
- if( !pContext )
- pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
return pContext;
}
@@ -77,9 +75,6 @@ SvXMLImportContext *SwXMLImport::CreateBodyContentContext(
if( !IsStylesOnlyMode() )
pContext = new SwXMLBodyContentContext_Impl( *this, rLocalName );
- else
- pContext = new SvXMLImportContext( *this, XML_NAMESPACE_OFFICE,
- rLocalName );
return pContext;
}