diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-04 08:45:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-04 11:21:36 +0200 |
commit | cda88ec7a43162df37098c4525c33451266a1575 (patch) | |
tree | 4f80310ab0ef1210b7dcd4d769b70c59fbc09f1e /sw/source/uibase/uno | |
parent | f45ff1a7147e6a9479c669f082dd74349c6bcb4b (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 'sw/source/uibase/uno')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 11ef3d90df17..00cefea1e109 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3363,11 +3363,11 @@ void SwXTextDocument::getPostIts(tools::JsonWriter& rJsonWriter) void SwXTextDocument::executeFromFieldEvent(const StringMap& aArguments) { auto aIter = aArguments.find("type"); - if (!(aIter != aArguments.end() && aIter->second == "drop-down")) + if (aIter == aArguments.end() || aIter->second != "drop-down") return; aIter = aArguments.find("cmd"); - if (!(aIter != aArguments.end() && aIter->second == "selected")) + if (aIter == aArguments.end() || aIter->second != "selected") return; aIter = aArguments.find("data"); |