summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-19 18:47:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-20 08:04:44 +0100
commit7c3aeac2b96dd71860fb0eabc943b9de278fe775 (patch)
tree5758913c02585039dff16de84ed3d7b3addfcc6e /svtools
parent528a3afa2497aa8bc0fcfda21b3a66c2fa014bda (diff)
ScrollBar::GetThumbPos returns tools::Long
Change-Id: I493e241e590325306a59fda89a30f1c97410c373 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106180 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/datwin.cxx2
-rw-r--r--svtools/source/brwbox/datwin.hxx7
2 files changed, 6 insertions, 3 deletions
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 <svtools/brwbox.hxx>
#include <svtools/brwhead.hxx>
+#include <tools/long.hxx>
#include <vcl/scrbar.hxx>
#include <vcl/timer.hxx>
#include <vcl/transfer.hxx>
+
+#include <limits>
#include <vector>
#define MIN_COLUMNWIDTH 2
@@ -82,14 +85,14 @@ public:
class BrowserScrollBar: public ScrollBar
{
- sal_uLong _nLastPos;
+ tools::Long _nLastPos;
VclPtr<BrowserDataWin> _pDataWin;
public:
BrowserScrollBar( vcl::Window* pParent, WinBits nStyle,
BrowserDataWin *pDataWin )
: ScrollBar( pParent, nStyle ),
- _nLastPos( ULONG_MAX ),
+ _nLastPos( std::numeric_limits<tools::Long>::max() ),
_pDataWin( pDataWin )
{}
virtual ~BrowserScrollBar() override;