diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-01-07 13:01:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-07 17:45:03 +0100 |
commit | e1383444c6d00f5d0b1d507670517f45988b9cc7 (patch) | |
tree | 5304b99014f1b2236456923a3e98b2c0dbf31511 /sw/source/filter/xml/xmltext.cxx | |
parent | 0f4dd820ee433932d9d9237b676292d31c4ba913 (diff) |
extract some common code from ImportContext classes
which reduces code bloat, and lets us log when elements are ignored
Change-Id: I5ca12bc1fcbfa3bea49ebde819fd80bd233a96a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86338
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmltext.cxx')
-rw-r--r-- | sw/source/filter/xml/xmltext.cxx | 5 |
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; } |