summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-27 14:50:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-28 09:04:51 +0200
commite871c9cb7ce4f3df2ba6780be62ed46b5ee7a410 (patch)
tree9204fac0ea61289899129c30582f3a108680f6a3 /comphelper
parent41d8b41767032681a9897b7551f011d450e3725e (diff)
loplugin:simplifybool in canvas..cui
Change-Id: Ib7c3b381ce4456e3d48538ee6f762ceaf2784fe1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94973 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/container/IndexedPropertyValuesContainer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/container/IndexedPropertyValuesContainer.cxx b/comphelper/source/container/IndexedPropertyValuesContainer.cxx
index ecd1c2dbb2f8..fe4ba0cff91a 100644
--- a/comphelper/source/container/IndexedPropertyValuesContainer.cxx
+++ b/comphelper/source/container/IndexedPropertyValuesContainer.cxx
@@ -117,7 +117,7 @@ sal_Int32 SAL_CALL IndexedPropertyValuesContainer::getCount( )
css::uno::Any SAL_CALL IndexedPropertyValuesContainer::getByIndex( sal_Int32 nIndex )
{
sal_Int32 nSize(maProperties.size());
- if (!((nIndex < nSize) && (nIndex >= 0)))
+ if ((nIndex >= nSize) || (nIndex < 0))
throw lang::IndexOutOfBoundsException();
return uno::Any( maProperties[nIndex] );