From f3797630be6ab21179e2496cc56a6d41f0ee8144 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 Jan 2020 15:28:45 +0200 Subject: 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 --- xmloff/source/draw/ximplink.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmloff/source/draw/ximplink.cxx') diff --git a/xmloff/source/draw/ximplink.cxx b/xmloff/source/draw/ximplink.cxx index 9de9cb753cca..db28b619e026 100644 --- a/xmloff/source/draw/ximplink.cxx +++ b/xmloff/source/draw/ximplink.cxx @@ -62,8 +62,7 @@ SvXMLImportContextRef SdXMLShapeLinkContext::CreateChildContext( sal_uInt16 nPre return pContext; } - // call parent when no own context was created - return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList); + return nullptr; } -- cgit