From cda88ec7a43162df37098c4525c33451266a1575 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Aug 2020 08:45:36 +0200 Subject: 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 --- unoidl/source/legacyprovider.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unoidl/source') 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(), -- cgit