summaryrefslogtreecommitdiff
path: root/editeng
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 /editeng
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 'editeng')
-rw-r--r--editeng/source/misc/SvXMLAutoCorrectImport.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/editeng/source/misc/SvXMLAutoCorrectImport.cxx b/editeng/source/misc/SvXMLAutoCorrectImport.cxx
index fb64d57c024f..b2a9e51d9823 100644
--- a/editeng/source/misc/SvXMLAutoCorrectImport.cxx
+++ b/editeng/source/misc/SvXMLAutoCorrectImport.cxx
@@ -40,12 +40,11 @@ SvXMLAutoCorrectImport::~SvXMLAutoCorrectImport() throw ()
}
SvXMLImportContext *SvXMLAutoCorrectImport::CreateFastContext( sal_Int32 Element,
- const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
+ const uno::Reference< xml::sax::XFastAttributeList > & /*xAttrList*/ )
{
if( Element == SvXMLAutoCorrectToken::BLOCKLIST )
return new SvXMLWordListContext( *this );
- else
- return SvXMLImport::CreateFastContext( Element, xAttrList );
+ return nullptr;
}
SvXMLWordListContext::SvXMLWordListContext(
@@ -114,12 +113,11 @@ SvXMLExceptionListImport::~SvXMLExceptionListImport() throw ()
}
SvXMLImportContext *SvXMLExceptionListImport::CreateFastContext(sal_Int32 Element,
- const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
+ const uno::Reference< xml::sax::XFastAttributeList > & /*xAttrList*/ )
{
if( Element == SvXMLAutoCorrectToken::BLOCKLIST )
return new SvXMLExceptionListContext( *this );
- else
- return SvXMLImport::CreateFastContext( Element, xAttrList );
+ return nullptr;
}
SvXMLExceptionListContext::SvXMLExceptionListContext(