summaryrefslogtreecommitdiffstats
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-19 11:58:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-19 14:25:15 +0100
commite51cc9ebf39598c1204d9b89af4e4145433adbd4 (patch)
treea5b1c3267bd3b7e58bc7d625b176bac25ca184ec /cppu
parentUNO_NAME_FILTER_NAME is not used anywhere (diff)
downloadcore-e51cc9ebf39598c1204d9b89af4e4145433adbd4.tar.gz
core-e51cc9ebf39598c1204d9b89af4e4145433adbd4.zip
More loplugin:simplifybool
...found with GCC 9, where the standard library iterator implementations are apparently sufficiently different to older versions of GCC to find more cases of !(... == ...) vs. ... != ... Change-Id: Ibe7c5140049a69d2c5318b4b2371f2e66bd05028 Reviewed-on: https://gerrit.libreoffice.org/68012 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 817601e03d42..ce4757594036 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -2137,7 +2137,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_release(
{
MutexGuard aGuard( rInit.getMutex() );
WeakMap_Impl::iterator aIt = rInit.pWeakMap->find( pRef->pTypeName->buffer );
- if( !(aIt == rInit.pWeakMap->end()) && (*aIt).second == pRef )
+ if( aIt != rInit.pWeakMap->end() && (*aIt).second == pRef )
{
// remove only if it contains the same object
rInit.pWeakMap->erase( aIt );