diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-16 15:43:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-17 10:28:09 +0000 |
commit | ce66911720b3245b21fb14bb83619c42610e5ac6 (patch) | |
tree | 5218fadfce07d451f3c5d514d9068bfe8a9eeb16 /svtools/source/brwbox/brwbox1.cxx | |
parent | 07da25064f75cdf7163669f9bf860a9ee2f8b33c (diff) |
loplugin:constantparam in svtools
Change-Id: I1a3c4a36e29a6712c589ffd3aaada593880d978d
Reviewed-on: https://gerrit.libreoffice.org/23304
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools/source/brwbox/brwbox1.cxx')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 385eb089303f..1f23ddc3ec20 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -1899,15 +1899,13 @@ bool BrowseBox::IsColumnSelected( sal_uInt16 nColumnId ) const void BrowseBox::MakeFieldVisible ( long nRow, // line number of the field (starting with 0) - sal_uInt16 nColId, // column ID of the field - bool bComplete // (== false), true => make visible in its entirety + sal_uInt16 nColId // column ID of the field ) /* [Description] Makes visible the field described in 'nRow' and 'nColId' by scrolling - accordingly. If 'bComplete' is set, the field should become visible in its - entirety. + accordingly. */ @@ -1919,7 +1917,7 @@ void BrowseBox::MakeFieldVisible return; // is it visible already? - bool bVisible = IsFieldVisible( nRow, nColId, bComplete ); + bool bVisible = IsFieldVisible( nRow, nColId, true/*bComplete*/ ); if ( bVisible ) return; @@ -1934,9 +1932,7 @@ void BrowseBox::MakeFieldVisible ScrollColumns( nColPos - nFirstCol ); // while outside on the right - while ( aDataRect.Right() < ( bComplete - ? aFieldRect.Right() - : aFieldRect.Left()+aFieldRect.GetWidth()/2 ) ) + while ( aDataRect.Right() < aFieldRect.Right() ) { // => scroll to the left if ( ScrollColumns( 1 ) != 1 ) |