summaryrefslogtreecommitdiff
path: root/xmloff/source/meta
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-01-07 13:01:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-07 17:45:03 +0100
commite1383444c6d00f5d0b1d507670517f45988b9cc7 (patch)
tree5304b99014f1b2236456923a3e98b2c0dbf31511 /xmloff/source/meta
parent0f4dd820ee433932d9d9237b676292d31c4ba913 (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 'xmloff/source/meta')
-rw-r--r--xmloff/source/meta/xmlmetai.cxx3
-rw-r--r--xmloff/source/meta/xmlversion.cxx4
2 files changed, 1 insertions, 6 deletions
diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx
index 533cc761d55c..a24a6f8c31b9 100644
--- a/xmloff/source/meta/xmlmetai.cxx
+++ b/xmloff/source/meta/xmlmetai.cxx
@@ -218,8 +218,7 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLMetaDocumentContex
if ( nElement == ( NAMESPACE_TOKEN( XML_NAMESPACE_OFFICE ) | XML_META ) )
return new XMLDocumentBuilderContext(
GetImport(), nElement, xAttrList, mxDocBuilder);
- else
- return new SvXMLImportContext( GetImport() );
+ return nullptr;
}
void SvXMLMetaDocumentContext::setBuildId(OUString const& i_rBuildId, const uno::Reference<beans::XPropertySet>& xImportInfo )
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index fc7bbe824f95..dba5e8d4f4cd 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -147,10 +147,6 @@ XMLVersionListContext::createFastChildContext(sal_Int32 nElement,
{
pContext = new XMLVersionContext( GetImport(), xAttrList );
}
- else
- {
- pContext = new SvXMLImportContext( GetImport() );
- }
return pContext;
}