From 915c7529e9b041879e8c63f15306028a6f649f48 Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 21 Oct 2020 09:28:47 +0200 Subject: use tools::Long in accessibility..basctl Change-Id: I67087c7a281e5bdecbaf227bd3147e7c12828791 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104587 Tested-by: Jenkins Reviewed-by: Noel Grandin --- accessibility/inc/helper/IComboListBoxHelper.hxx | 3 ++- accessibility/inc/helper/listboxhelper.hxx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'accessibility/inc') diff --git a/accessibility/inc/helper/IComboListBoxHelper.hxx b/accessibility/inc/helper/IComboListBoxHelper.hxx index 52e796f1e673..e786311fd0df 100644 --- a/accessibility/inc/helper/IComboListBoxHelper.hxx +++ b/accessibility/inc/helper/IComboListBoxHelper.hxx @@ -22,6 +22,7 @@ #include #include +#include namespace com::sun::star::datatransfer::clipboard { class XClipboard; @@ -57,7 +58,7 @@ namespace accessibility virtual sal_Int32 GetSelectedEntryPos( sal_Int32 nSelIndex ) const = 0; virtual bool IsInDropDown() const = 0; virtual tools::Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const = 0; - virtual long GetIndexForPoint( const Point& rPoint, sal_Int32 & nPos ) const = 0; + virtual tools::Long GetIndexForPoint( const Point& rPoint, sal_Int32 & nPos ) const = 0; virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard() = 0; }; diff --git a/accessibility/inc/helper/listboxhelper.hxx b/accessibility/inc/helper/listboxhelper.hxx index 919cbbdce5b3..b5e09034d01c 100644 --- a/accessibility/inc/helper/listboxhelper.hxx +++ b/accessibility/inc/helper/listboxhelper.hxx @@ -163,13 +163,13 @@ public: Pair aEntryCharacterRange = m_aComboListBox.GetLineStartEnd( _nEntryPos ); if ( aEntryCharacterRange.A() + _nCharacterIndex <= aEntryCharacterRange.B() ) { - long nIndex = aEntryCharacterRange.A() + _nCharacterIndex; + tools::Long nIndex = aEntryCharacterRange.A() + _nCharacterIndex; aRect = m_aComboListBox.GetCharacterBounds( nIndex ); } return aRect; } - long GetIndexForPoint( const Point& rPoint, sal_Int32& nPos ) const override + tools::Long GetIndexForPoint( const Point& rPoint, sal_Int32& nPos ) const override { return m_aComboListBox.GetIndexForPoint( rPoint, nPos ); } -- cgit v1.2.3