summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-16 11:11:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-16 10:52:19 +0100
commit8041a9b1fd26b64494ecb4c23022f39bd168a24f (patch)
tree2ad86004de35a56859919b18f551b1dd92806eac /linguistic
parentef5812deb142d043e58965bf8f4829b50acffcee (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdicxml.cxx5
1 files changed, 2 insertions, 3 deletions
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: */