summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLChangedRegionImportContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-20 15:28:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-20 15:41:53 +0100
commitf3797630be6ab21179e2496cc56a6d41f0ee8144 (patch)
tree16124e4e571065b7aa87bb90892926c58db3cafc /xmloff/source/text/XMLChangedRegionImportContext.cxx
parent552ec2a3e53c5267ee04dca2249fd30983c6a395 (diff)
return nullptr from CreateChildContext methods in subclasses
the calling class handles this nicely, and also tells us when we are not handling some part of the XML file Change-Id: Ib64a704bc96bb4d6eff2d57116d62c9c15e25c6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87073 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLChangedRegionImportContext.cxx')
-rw-r--r--xmloff/source/text/XMLChangedRegionImportContext.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/xmloff/source/text/XMLChangedRegionImportContext.cxx b/xmloff/source/text/XMLChangedRegionImportContext.cxx
index bf29d7390efd..44f68d98d2de 100644
--- a/xmloff/source/text/XMLChangedRegionImportContext.cxx
+++ b/xmloff/source/text/XMLChangedRegionImportContext.cxx
@@ -95,7 +95,7 @@ void XMLChangedRegionImportContext::StartElement(
SvXMLImportContextRef XMLChangedRegionImportContext::CreateChildContext(
sal_uInt16 nPrefix,
const OUString& rLocalName,
- const Reference<XAttributeList> & xAttrList)
+ const Reference<XAttributeList> & /*xAttrList*/)
{
SvXMLImportContextRef xContext;
@@ -121,16 +121,7 @@ SvXMLImportContextRef XMLChangedRegionImportContext::CreateChildContext(
{
// illegal element content! TODO: discard the redlines
// for the moment -> use text
-
- xContext = SvXMLImportContext::CreateChildContext(nPrefix, rLocalName,
- xAttrList);
-
// or default if text fail
- if (!xContext)
- {
- xContext = SvXMLImportContext::CreateChildContext(
- nPrefix, rLocalName, xAttrList);
- }
}
return xContext;