From 7c3aeac2b96dd71860fb0eabc943b9de278fe775 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 19 Nov 2020 18:47:07 +0100 Subject: ScrollBar::GetThumbPos returns tools::Long Change-Id: I493e241e590325306a59fda89a30f1c97410c373 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106180 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- svtools/source/brwbox/datwin.cxx | 2 +- svtools/source/brwbox/datwin.hxx | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'svtools') diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index fd1e12a0d46d..d88b41e146cd 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -669,7 +669,7 @@ void BrowserScrollBar::dispose() void BrowserScrollBar::Tracking( const TrackingEvent& rTEvt ) { - sal_uLong nPos = GetThumbPos(); + tools::Long nPos = GetThumbPos(); if ( nPos != _nLastPos ) { OUString aTip = OUString::number(nPos) + "/"; diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx index 34e30c1812f5..b01e63fbbc7d 100644 --- a/svtools/source/brwbox/datwin.hxx +++ b/svtools/source/brwbox/datwin.hxx @@ -21,9 +21,12 @@ #include #include +#include #include #include #include + +#include #include #define MIN_COLUMNWIDTH 2 @@ -82,14 +85,14 @@ public: class BrowserScrollBar: public ScrollBar { - sal_uLong _nLastPos; + tools::Long _nLastPos; VclPtr _pDataWin; public: BrowserScrollBar( vcl::Window* pParent, WinBits nStyle, BrowserDataWin *pDataWin ) : ScrollBar( pParent, nStyle ), - _nLastPos( ULONG_MAX ), + _nLastPos( std::numeric_limits::max() ), _pDataWin( pDataWin ) {} virtual ~BrowserScrollBar() override; -- cgit v1.2.3