From 8041a9b1fd26b64494ecb4c23022f39bd168a24f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Jan 2020 11:11:32 +0200 Subject: return nullptr from Create*Context methods in nullptr subclasses the calling class handles this nicely, and also tells us when we are not handling some part of the XML file Change-Id: Ic51a42b9d2dec96243e7f83b528d7455d4bc0504 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86906 Tested-by: Jenkins Reviewed-by: Noel Grandin --- linguistic/source/convdicxml.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/convdicxml.cxx b/linguistic/source/convdicxml.cxx index b2dc42dbb270..ecae4e48548e 100644 --- a/linguistic/source/convdicxml.cxx +++ b/linguistic/source/convdicxml.cxx @@ -347,12 +347,11 @@ ConvDicXMLImport::ConvDicXMLImport( ConvDic *pConvDic ) : SvXMLImportContext * ConvDicXMLImport::CreateFastContext( sal_Int32 Element, - const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) + const css::uno::Reference< css::xml::sax::XFastAttributeList > & /*xAttrList*/ ) { if( Element == ConvDicXMLToken::TEXT_CONVERSION_DICTIONARY ) return new ConvDicXMLDictionaryContext_Impl( *this ); - else - return SvXMLImport::CreateFastContext( Element, xAttrList ); + return nullptr; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit