diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-05 13:44:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-06 06:47:06 +0100 |
commit | a2e3705d8b3b05ae664d54b762d6ff72927d5e48 (patch) | |
tree | 6ac31f9c9b419b12dbf065845a6941c143f57e2c /sfx2/source | |
parent | f423ac2d3bdba4263f1f41e31e7e2b7715afdd6e (diff) |
loplugin:unnecessaryparen improve member expression
Change-Id: I304621018cb1e2a47e478e86df4229bcf2176741
Reviewed-on: https://gerrit.libreoffice.org/68757
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/titledockwin.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index cea98594642b..04c47f81ffc0 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -278,7 +278,7 @@ void ThumbnailView::CalculateItemPositions (bool bScrollBarUsed) nScrBarWidth = mpScrBar->GetSizePixel().Width(); // calculate maximum number of visible columns - mnCols = static_cast<sal_uInt16>((aWinSize.Width()-nScrBarWidth) / (mnItemWidth)); + mnCols = static_cast<sal_uInt16>((aWinSize.Width()-nScrBarWidth) / mnItemWidth); if (!mnCols) mnCols = 1; diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx index c82d1ec84033..e78527652bb4 100644 --- a/sfx2/source/dialog/titledockwin.cxx +++ b/sfx2/source/dialog/titledockwin.cxx @@ -122,7 +122,7 @@ namespace sfx2 // Place the content window. if ( m_nTitleBarHeight < aToolBoxSize.Height() ) m_nTitleBarHeight = aToolBoxSize.Height(); - aWindowSize.AdjustHeight( -(m_nTitleBarHeight) ); + aWindowSize.AdjustHeight( -m_nTitleBarHeight ); m_aContentWindow->SetPosSizePixel( Point( m_aBorder.Left(), m_nTitleBarHeight + m_aBorder.Top() ), Size( |