summaryrefslogtreecommitdiffstats
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-20 13:52:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-20 17:18:31 +0100
commit16a614c77ace3f44684efd9c964c52ddbd5f5cf9 (patch)
tree243a972fe3bace2665c78b2a4c67df932c8b6627 /cppu
parentcairo: upgrade to release 1.16.0 (diff)
downloadcore-16a614c77ace3f44684efd9c964c52ddbd5f5cf9.tar.gz
core-16a614c77ace3f44684efd9c964c52ddbd5f5cf9.zip
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 <sbergman@redhat.com>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/typelib/typelib.cxx2
1 files changed, 1 insertions, 1 deletions
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 )