diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-16 14:05:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-16 14:31:38 +0100 |
commit | 890afecb45bfcd2e53599974fbcf61fffd8f8a7b (patch) | |
tree | 9233bafbcfae88e93d387e501e3195aa3e98d2f4 /include/editeng | |
parent | faa63cd14c1d360d0e4eedb64cd879aa1229fa60 (diff) |
loplugin:buriedassign in dbaccess..oox
Change-Id: Ic0ca695a1d9d05418213475a68e233953136cc8e
Reviewed-on: https://gerrit.libreoffice.org/63468
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/boxitem.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/editeng/boxitem.hxx b/include/editeng/boxitem.hxx index 14a30dfc4c70..103967578f20 100644 --- a/include/editeng/boxitem.hxx +++ b/include/editeng/boxitem.hxx @@ -227,8 +227,12 @@ public: bool IsValid( SvxBoxInfoItemValidFlags nValid ) const { return bool( nValidFlags & nValid ); } void SetValid( SvxBoxInfoItemValidFlags nValid, bool bValid = true ) - { bValid ? ( nValidFlags |= nValid ) - : ( nValidFlags &= ~nValid ); } + { + if (bValid) + nValidFlags |= nValid; + else + nValidFlags &= ~nValid; + } void ResetFlags(); }; |