From b83ac35bf46ecbebf7f806235eca38a71e521c32 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 3 Jun 2020 10:52:46 +0200 Subject: loplugin:simplifypointertobool improve (2) to look for the x.get() == null pattern, which can be simplified to !x Change-Id: I0eddf93257ab53ab31949961d7c33ac2dd7288ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95400 Tested-by: Noel Grandin Reviewed-by: Noel Grandin --- sax/source/fastparser/fastparser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sax/source/fastparser') diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 1c4d5531a747..49648fe626b2 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -955,7 +955,7 @@ void FastSaxParserImpl::produce( bool bForceFlush ) } rEntity.maPendingEvents.push(std::move(rEntity.mxProducedEvents)); - assert(rEntity.mxProducedEvents.get() == nullptr); + assert(!rEntity.mxProducedEvents); aGuard.clear(); // unlock -- cgit