summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unomap.cxx
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 /sw/source/core/unocore/unomap.cxx
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 'sw/source/core/unocore/unomap.cxx')
-rw-r--r--sw/source/core/unocore/unomap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx
index 8da991f62451..093f8972c749 100644
--- a/sw/source/core/unocore/unomap.cxx
+++ b/sw/source/core/unocore/unomap.cxx
@@ -700,7 +700,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetPropertyMapEntries(s
!pMap->aName.isEmpty(); ++pMap )
{
// OUString(UNO_NAME_PAGE_DESC_NAME) should keep its MAYBEVOID flag
- if (!(RES_PAGEDESC == pMap->nWID && MID_PAGEDESC_PAGEDESCNAME == pMap->nMemberId))
+ if (RES_PAGEDESC != pMap->nWID || MID_PAGEDESC_PAGEDESCNAME != pMap->nMemberId)
pMap->nFlags &= ~PropertyAttribute::MAYBEVOID;
}
}