diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 16:59:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 16:59:39 +0000 |
commit | e170f0858721545d6b0e22d12cc1f5bbc6b2e57d (patch) | |
tree | 1eb353d276826431f10e5a29a41fcb96ed29f7df /sw/source | |
parent | 3d876661857b68cafde16fafd5f280cc78b3e52b (diff) |
coverity#1242518 Arguments in wrong order
doesn't actually matter, they are either the same number or one is 0
in which case it doesn't matter which is zero either
Change-Id: If53d4287dfd57b4ce29e2f7251eb523694730e77
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/uiview/viewport.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx index c7509b926a67..4280ad80b6ce 100644 --- a/sw/source/uibase/uiview/viewport.cxx +++ b/sw/source/uibase/uiview/viewport.cxx @@ -852,9 +852,9 @@ void ViewResizePixel( const vcl::Window &rRef, const long nVLinSzWidth = bVRuler ? pVRuler->GetSizePixel().Width() : 0; - long nScrollBarSize = rRef.GetSettings().GetStyleSettings().GetScrollBarSize(); - long nHBSzHeight = rHScrollbar.IsVisible(true) ? nScrollBarSize : 0; - long nVBSzWidth = rVScrollbar.IsVisible(true) ? nScrollBarSize : 0; + const long nScrollBarSize = rRef.GetSettings().GetStyleSettings().GetScrollBarSize(); + const long nHBSzHeight = rHScrollbar.IsVisible(true) ? nScrollBarSize : 0; + const long nVBSzWidth = rVScrollbar.IsVisible(true) ? nScrollBarSize : 0; if(pVRuler) { @@ -927,7 +927,7 @@ void ViewResizePixel( const vcl::Window &rRef, aScrollFillPos.X() = aPos.X(); } - rScrollBarBox.SetPosSizePixel( aScrollFillPos, Size( nHBSzHeight, nVBSzWidth) ); + rScrollBarBox.SetPosSizePixel(aScrollFillPos, Size(nVBSzWidth, nHBSzHeight)); } void SwView::ShowAtResize() |