summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
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;