summaryrefslogtreecommitdiff
path: root/vcl/source/control/spinbtn.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-19 15:12:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-19 21:34:46 +0200
commit3aef606f2758172a27718a06fea0ff9080e4d80f (patch)
treead323c90301d80bbb3b68163d8b87e5402b687ed /vcl/source/control/spinbtn.cxx
parent5afba3e12c8d4eb1ebb8e087134eb87593bb017a (diff)
use tools::Long in vcl
Change-Id: Ice1055021e8568634e9a66ba89d3bb4ef4e731df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104522 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/spinbtn.cxx')
-rw-r--r--vcl/source/control/spinbtn.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx
index 531c90222233..db8ca2b13e8f 100644
--- a/vcl/source/control/spinbtn.cxx
+++ b/vcl/source/control/spinbtn.cxx
@@ -334,12 +334,12 @@ void SpinButton::StateChanged( StateChangedType nType )
Control::StateChanged( nType );
}
-void SpinButton::SetRangeMin( long nNewRange )
+void SpinButton::SetRangeMin( tools::Long nNewRange )
{
SetRange( Range( nNewRange, GetRangeMax() ) );
}
-void SpinButton::SetRangeMax( long nNewRange )
+void SpinButton::SetRangeMax( tools::Long nNewRange )
{
SetRange( Range( GetRangeMin(), nNewRange ) );
}
@@ -349,8 +349,8 @@ void SpinButton::SetRange( const Range& rRange )
// adjust rage
Range aRange = rRange;
aRange.Justify();
- long nNewMinRange = aRange.Min();
- long nNewMaxRange = aRange.Max();
+ tools::Long nNewMinRange = aRange.Min();
+ tools::Long nNewMaxRange = aRange.Max();
// do something only if old and new range differ
if ( (mnMinRange == nNewMinRange) && (mnMaxRange == nNewMaxRange))
@@ -368,7 +368,7 @@ void SpinButton::SetRange( const Range& rRange )
CompatStateChanged( StateChangedType::Data );
}
-void SpinButton::SetValue( long nValue )
+void SpinButton::SetValue( tools::Long nValue )
{
// adjust, if necessary
if ( nValue > mnMaxRange )