From 16a614c77ace3f44684efd9c964c52ddbd5f5cf9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Feb 2019 13:52:51 +0100 Subject: More loplugin:simplifybool ...found with (trunk) libc++ on macOS, where the standard library iterator implementations are apparently sufficiently different to libstdc++ to find more cases of !(... == ...) vs. ... != ... Change-Id: Ia3861406aa584c7b1d33f47448190b5cf2e770f7 Reviewed-on: https://gerrit.libreoffice.org/68089 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmloff/source/transform/EventOASISTContext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff/source/transform/EventOASISTContext.cxx') diff --git a/xmloff/source/transform/EventOASISTContext.cxx b/xmloff/source/transform/EventOASISTContext.cxx index f44b73398c1a..e975ba3099ca 100644 --- a/xmloff/source/transform/EventOASISTContext.cxx +++ b/xmloff/source/transform/EventOASISTContext.cxx @@ -111,7 +111,7 @@ OUString XMLEventOASISTransformerContext::GetEventName( { XMLTransformerOASISEventMap_Impl::const_iterator aIter = pMap2->find( aKey ); - if( !(aIter == pMap2->end()) ) + if( aIter != pMap2->end() ) return (*aIter).second; } @@ -185,7 +185,7 @@ void XMLEventOASISTransformerContext::StartElement( XMLTransformerActions::key_type aKey( nPrefix, aLocalName ); XMLTransformerActions::const_iterator aIter = pActions->find( aKey ); - if( !(aIter == pActions->end() ) ) + if( aIter != pActions->end() ) { if( !pMutableAttrList ) { -- cgit