diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 11:20:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-05 07:49:30 +0100 |
commit | e4472d3c139294499f4c0caeebd9d4e995958eb0 (patch) | |
tree | 3e62a6530f8b758dddab18981ee38cc76ecaef9e /include | |
parent | 126e5a4d5b1d6c7ba5b313786793a38f99488b33 (diff) |
loplugin:unnecessaryparen include more assignments
Change-Id: I9fb8366634b31230b732dd38a98f800075529714
Reviewed-on: https://gerrit.libreoffice.org/64510
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/tokenarray.hxx | 2 | ||||
-rw-r--r-- | include/svtools/ivctrl.hxx | 2 | ||||
-rw-r--r-- | include/vcl/seleng.hxx | 8 | ||||
-rw-r--r-- | include/xmloff/nmspmap.hxx | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 2891601b2626..9f93aa63a9b1 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -389,7 +389,7 @@ public: ScRecalcMode GetRecalcMode() const { return nMode; } void SetCombinedBitsRecalcMode( ScRecalcMode nBits ) - { nMode |= (nBits & ~ScRecalcMode::EMask); } + { nMode |= nBits & ~ScRecalcMode::EMask; } ScRecalcMode GetCombinedBitsRecalcMode() const { return nMode & ~ScRecalcMode::EMask; } diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx index 2f4f2f63ae29..eb834bdd6687 100644 --- a/include/svtools/ivctrl.hxx +++ b/include/svtools/ivctrl.hxx @@ -89,7 +89,7 @@ class SvxIconChoiceCtrlEntry sal_uInt16 nX,nY; // for keyboard control SvxIconViewFlags nFlags; - void ClearFlags( SvxIconViewFlags nMask ) { nFlags &= (~nMask); } + void ClearFlags( SvxIconViewFlags nMask ) { nFlags &= ~nMask; } void SetFlags( SvxIconViewFlags nMask ) { nFlags |= nMask; } void AssignFlags( SvxIconViewFlags _nFlags ) { nFlags = _nFlags; } diff --git a/include/vcl/seleng.hxx b/include/vcl/seleng.hxx index a95bbedc15fc..0ba81da8052a 100644 --- a/include/vcl/seleng.hxx +++ b/include/vcl/seleng.hxx @@ -173,7 +173,7 @@ inline void SelectionEngine::SetAddMode( bool bNewMode ) if ( bNewMode ) nFlags |= SelectionEngineFlags::IN_ADD; else - nFlags &= (~SelectionEngineFlags::IN_ADD); + nFlags &= ~SelectionEngineFlags::IN_ADD; } inline void SelectionEngine::EnableDrag( bool bOn ) @@ -181,7 +181,7 @@ inline void SelectionEngine::EnableDrag( bool bOn ) if ( bOn ) nFlags |= SelectionEngineFlags::DRG_ENAB; else - nFlags &= (~SelectionEngineFlags::DRG_ENAB); + nFlags &= ~SelectionEngineFlags::DRG_ENAB; } inline void SelectionEngine::AddAlways( bool bOn ) @@ -189,7 +189,7 @@ inline void SelectionEngine::AddAlways( bool bOn ) if( bOn ) nFlags |= SelectionEngineFlags::ADD_ALW; else - nFlags &= (~SelectionEngineFlags::ADD_ALW); + nFlags &= ~SelectionEngineFlags::ADD_ALW; } inline bool SelectionEngine::IsAlwaysAdding() const @@ -221,7 +221,7 @@ inline void SelectionEngine::SetAnchor( bool bAnchor ) if ( bAnchor ) nFlags |= SelectionEngineFlags::HAS_ANCH; else - nFlags &= (~SelectionEngineFlags::HAS_ANCH); + nFlags &= ~SelectionEngineFlags::HAS_ANCH; } #endif // INCLUDED_VCL_SELENG_HXX diff --git a/include/xmloff/nmspmap.hxx b/include/xmloff/nmspmap.hxx index 1064a8550f1d..127d5b59f06b 100644 --- a/include/xmloff/nmspmap.hxx +++ b/include/xmloff/nmspmap.hxx @@ -34,8 +34,8 @@ #include <limits.h> -const sal_uInt16 XML_NAMESPACE_XMLNS = (USHRT_MAX-2); -const sal_uInt16 XML_NAMESPACE_NONE = (USHRT_MAX-1); +const sal_uInt16 XML_NAMESPACE_XMLNS = USHRT_MAX-2; +const sal_uInt16 XML_NAMESPACE_NONE = USHRT_MAX-1; const sal_uInt16 XML_NAMESPACE_UNKNOWN = USHRT_MAX; const sal_uInt16 XML_NAMESPACE_UNKNOWN_FLAG = 0x8000; |