diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 13:08:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-27 10:44:25 +0100 |
commit | 2e5508a17660401e1b4b489dbc9f70b978745b75 (patch) | |
tree | 881afcf9d8b9f0a653df0c94a8a2deefdf85670e /sc/source | |
parent | 470682b3abf0622f5e9663d62d8641f63ceb6f30 (diff) |
loplugin:unnecessaryparen check for (f1()).f2
Change-Id: I93257b0ddd41c649875124d6d5c5faeaa431bae3
Reviewed-on: https://gerrit.libreoffice.org/45218
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/app/uiitems.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/fudraw.cxx | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 406d40ed972c..373615960665 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -941,7 +941,7 @@ struct ScShapePointFound bool operator() (const ScShapeChild& rShape) { bool bResult(false); - if ((VCLRectangle(rShape.mpAccShape->getBounds())).IsInside(maPoint)) + if (VCLRectangle(rShape.mpAccShape->getBounds()).IsInside(maPoint)) bResult = true; return bResult; } diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index a70db85be5bb..23cfa22074ab 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -630,11 +630,11 @@ void ScModule::ResetDragObject() mpDragData->pCellTransfer = nullptr; mpDragData->pDrawTransfer = nullptr; mpDragData->pJumpLocalDoc = nullptr; - (mpDragData->aLinkDoc).clear(); - (mpDragData->aLinkTable).clear(); - (mpDragData->aLinkArea).clear(); - (mpDragData->aJumpTarget).clear(); - (mpDragData->aJumpText).clear(); + mpDragData->aLinkDoc.clear(); + mpDragData->aLinkTable.clear(); + mpDragData->aLinkArea.clear(); + mpDragData->aJumpTarget.clear(); + mpDragData->aJumpText.clear(); } void ScModule::SetDragObject( ScTransferObj* pCellObj, ScDrawTransferObj* pDrawObj ) diff --git a/sc/source/ui/app/uiitems.cxx b/sc/source/ui/app/uiitems.cxx index 8ee43ebc0a1f..a28e02234ad0 100644 --- a/sc/source/ui/app/uiitems.cxx +++ b/sc/source/ui/app/uiitems.cxx @@ -332,8 +332,8 @@ bool ScUserListItem::operator==( const SfxPoolItem& rItem ) const const ScUserListItem& r = static_cast<const ScUserListItem&>(rItem); bool bEqual = false; - if ( !pUserList || !(r.pUserList) ) - bEqual = ( !pUserList && !(r.pUserList) ); + if ( !pUserList || !r.pUserList ) + bEqual = ( !pUserList && !r.pUserList ); else bEqual = ( *pUserList == *(r.pUserList) ); diff --git a/sc/source/ui/drawfunc/fudraw.cxx b/sc/source/ui/drawfunc/fudraw.cxx index b13db135d299..5fbd8d9ab608 100644 --- a/sc/source/ui/drawfunc/fudraw.cxx +++ b/sc/source/ui/drawfunc/fudraw.cxx @@ -417,7 +417,7 @@ bool FuDraw::KeyInput(const KeyEvent& rKEvt) if(rKEvt.GetKeyCode().IsMod2()) { // move in 1 pixel distance - Size aLogicSizeOnePixel = (pWindow) ? pWindow->PixelToLogic(Size(1,1)) : Size(100, 100); + Size aLogicSizeOnePixel = pWindow ? pWindow->PixelToLogic(Size(1,1)) : Size(100, 100); nX *= aLogicSizeOnePixel.Width(); nY *= aLogicSizeOnePixel.Height(); } |