summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-04 14:44:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-04 17:56:25 +0200
commitb278193deb75d5487d9fb4e936a1a26926acb4af (patch)
tree6cdcb1c5d1decfc61b6f800c7f4d47522126e034 /extensions
parent72a67f11586f953d74baaaab934570b63b326cde (diff)
loplugin:simplifybool (clang-cl)
Change-Id: Ib53c1d0d11962067d3a18dab453a6530398bc5a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100093 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/oleobjw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx
index c0a830eece91..bde55278c174 100644
--- a/extensions/source/ole/oleobjw.cxx
+++ b/extensions/source/ole/oleobjw.cxx
@@ -1281,7 +1281,7 @@ uno::Any SAL_CALL IUnknownWrapper::directInvoke( const OUString& aName, const un
// fill the named arguments
if ( dispparams.cNamedArgs > 0
- && !( dispparams.cNamedArgs == 1 && pInvkinds[nStep] == INVOKE_PROPERTYPUT ) )
+ && ( dispparams.cNamedArgs != 1 || pInvkinds[nStep] != INVOKE_PROPERTYPUT ) )
{
int nSizeAr = dispparams.cNamedArgs + 1;
if ( pInvkinds[nStep] == INVOKE_PROPERTYPUT )