diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-18 08:26:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-15 08:52:23 +0200 |
commit | 52e438caafc3cd24b3759b08c1aaee88e5b67877 (patch) | |
tree | ceb8aef8dd12c2b81caf2138ac194b086d9a77ff /sfx2 | |
parent | a0d5f0896ed7f2de8ceffd664ee469a383ce7d53 (diff) |
remove unnecessary parentheses in case labels
Change-Id: I987bf68c767709080c67c8b183c036a4109c6caa
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index b5d8267da4b8..8a47c30a6030 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -2460,7 +2460,7 @@ void SfxWorkWindow::ArrangeAutoHideWindows( SfxSplitWindow *pActSplitWin ) switch ( n ) { - case ( 0 ) : + case 0 : { // Left SplitWindow // Get the width of the Window yourself, if no DummyWindow @@ -2474,7 +2474,7 @@ void SfxWorkWindow::ArrangeAutoHideWindows( SfxSplitWindow *pActSplitWin ) aArea.Left() = nLeft; break; } - case ( 1 ) : + case 1 : { // Right SplitWindow // Position to correct the difference of the widths @@ -2501,7 +2501,7 @@ void SfxWorkWindow::ArrangeAutoHideWindows( SfxSplitWindow *pActSplitWin ) aArea.Right() = nRight; break; } - case ( 2 ) : + case 2 : { // Top SplitWindow // Get the height of the Window yourself, if no DummyWindow @@ -2521,7 +2521,7 @@ void SfxWorkWindow::ArrangeAutoHideWindows( SfxSplitWindow *pActSplitWin ) aArea.Top() = nTop; break; } - case ( 3 ) : + case 3 : { // The bottom SplitWindow // Position to correct the difference of the heights @@ -2573,16 +2573,16 @@ Rectangle SfxWorkWindow::GetFreeArea( bool bAutoHide ) const Size aSize = pSplit[n]->GetSizePixel(); switch ( n ) { - case ( 0 ) : + case 0 : aArea.Left() += aSize.Width(); break; - case ( 1 ) : + case 1 : aArea.Right() -= aSize.Width(); break; - case ( 2 ) : + case 2 : aArea.Top() += aSize.Height(); break; - case ( 3 ) : + case 3 : aArea.Bottom() -= aSize.Height(); break; } |