summaryrefslogtreecommitdiff
path: root/svtools/source/table/tablecontrol_impl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 11:49:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 07:34:41 +0100
commit7fed35ff43d6e8c1e838c6fe582edd308692bab0 (patch)
tree57bc40dd19c70c36e5f3c9256e4a7b65af7926cc /svtools/source/table/tablecontrol_impl.cxx
parent4cfcf965b5c95b1ba7dd454e9dda954e8315b8a9 (diff)
loplugin:constantparam in svl,svtools
Change-Id: I0d7c1dff2646e483c866f547224c60838b221c4b Reviewed-on: https://gerrit.libreoffice.org/44083 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/table/tablecontrol_impl.cxx')
-rw-r--r--svtools/source/table/tablecontrol_impl.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index dd15c46b492b..b16677314e92 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -596,12 +596,12 @@ namespace svt { namespace table
}
- void lcl_setButtonRepeat( vcl::Window& _rWindow, sal_uLong _nDelay )
+ void lcl_setButtonRepeat( vcl::Window& _rWindow )
{
AllSettings aSettings = _rWindow.GetSettings();
MouseSettings aMouseSettings = aSettings.GetMouseSettings();
- aMouseSettings.SetButtonRepeat( _nDelay );
+ aMouseSettings.SetButtonRepeat( 0 );
aSettings.SetMouseSettings( aMouseSettings );
_rWindow.SetSettings( aSettings, true );
@@ -610,7 +610,7 @@ namespace svt { namespace table
bool lcl_updateScrollbar( vcl::Window& _rParent, VclPtr<ScrollBar>& _rpBar,
bool const i_needBar, long _nVisibleUnits,
- long _nPosition, long _nLineSize, long _nRange,
+ long _nPosition, long _nRange,
bool _bHorizontal, const Link<ScrollBar*,void>& _rScrollHandler )
{
// do we currently have the scrollbar?
@@ -632,7 +632,7 @@ namespace svt { namespace table
);
_rpBar->SetScrollHdl( _rScrollHandler );
// get some speed into the scrolling ....
- lcl_setButtonRepeat( *_rpBar, 0 );
+ lcl_setButtonRepeat( *_rpBar );
}
if ( _rpBar )
@@ -640,7 +640,7 @@ namespace svt { namespace table
_rpBar->SetRange( Range( 0, _nRange ) );
_rpBar->SetVisibleSize( _nVisibleUnits );
_rpBar->SetPageSize( _nVisibleUnits );
- _rpBar->SetLineSize( _nLineSize );
+ _rpBar->SetLineSize( 1 );
_rpBar->SetThumbPos( _nPosition );
_rpBar->Show();
}
@@ -1086,7 +1086,6 @@ namespace svt { namespace table
lcl_getRowsFittingInto( i_dataCellPlayground.GetHeight(), m_nRowHeightPixel, false ),
// visible units
m_nTopRow, // current position
- 1, // line size
m_nRowCount, // range
false, // vertical
LINK( this, TableControl_Impl, OnScroll ) // scroll handler
@@ -1111,7 +1110,6 @@ namespace svt { namespace table
lcl_getColumnsVisibleWithin( i_dataCellPlayground, m_nLeftColumn, *this, false ),
// visible units
m_nLeftColumn, // current position
- 1, // line size
m_nColumnCount, // range
true, // horizontal
LINK( this, TableControl_Impl, OnScroll ) // scroll handler