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 --- cppu/source/typelib/typelib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppu') diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index ce4757594036..309543b4078d 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -2219,7 +2219,7 @@ extern "C" void typelib_typedescriptionreference_getByName( { MutexGuard aGuard( rInit.getMutex() ); WeakMap_Impl::const_iterator aIt = rInit.pWeakMap->find( pName->buffer ); - if( !(aIt == rInit.pWeakMap->end()) ) // != failed on msc4.2 + if( aIt != rInit.pWeakMap->end() ) { sal_Int32 n = osl_atomic_increment( &(*aIt).second->nRefCount ); if( n > 1 ) -- cgit