From d6c32cffb5cc81989b4bb4a221a152bbe607bd98 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 19 Apr 2020 09:07:27 +0200 Subject: loplugin:simplifybool extend to expression like !(a < b || c > d) mostly to catch stuff from the flatten work, but I think this looks good in general Change-Id: I7be5b7bcf1f3d9f980c748ba20793965cef957e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92493 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/security/access_controller.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stoc') diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index 7b10e11f01c9..c9387e7514b3 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -384,7 +384,7 @@ AccessController::AccessController( Reference< XComponentContext > const & xComp } // switch on caching for Mode::DynamicOnly and Mode::On (shareable multi-user process) - if (!(Mode::On == m_mode || Mode::DynamicOnly == m_mode)) + if (Mode::On != m_mode && Mode::DynamicOnly != m_mode) return; sal_Int32 cacheSize = 0; // multi-user cache size -- cgit