summaryrefslogtreecommitdiff
path: root/unoidl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-04 08:45:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-04 11:21:36 +0200
commitcda88ec7a43162df37098c4525c33451266a1575 (patch)
tree4f80310ab0ef1210b7dcd4d769b70c59fbc09f1e /unoidl/source
parentf45ff1a7147e6a9479c669f082dd74349c6bcb4b (diff)
loplugin:simplifybool a little more aggressive
with expressions like !(a && b) Change-Id: Id2acec2a8d0eaaa8e5e37dbd2cae7281be36572e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100040 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoidl/source')
-rw-r--r--unoidl/source/legacyprovider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx
index 3b57ee5fdcdc..a5062cdeb8d0 100644
--- a/unoidl/source/legacyprovider.cxx
+++ b/unoidl/source/legacyprovider.cxx
@@ -628,10 +628,10 @@ rtl::Reference< Entity > readEntity(
+ sub.getName()));
}
if ((mode & RT_PARAM_REST) != 0
- && !(m == 1
- && ((reader.getMethodParameterTypeName(
+ && (m != 1
+ || ((reader.getMethodParameterTypeName(
j, 0))
- == "any")))
+ != "any")))
{
throw FileFormatException(
key.getRegistryName(),