summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-21 07:49:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-30 08:57:07 +0100
commitf2be3d31cde821f5c1128deae7f2b95361ac1db9 (patch)
treeaac9582c61cf53e61da4b566c4d10b60af0475ad /vcl/source
parent46ecd31445bda45e10d58e937ff468a1a8f17da2 (diff)
convert some tools::Long->sal_Int32
in places where it is obvious we only need a sal_Int32, because we are dealing with rows and columns, and not even calc needs more than 32 bits for that. Change-Id: I114417e639c224d45bfd9fc6838122ab195eefa3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104584 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/treelist/svtabbx.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx
index ae05b541bc40..a789607a2193 100644
--- a/vcl/source/treelist/svtabbx.cxx
+++ b/vcl/source/treelist/svtabbx.cxx
@@ -533,7 +533,7 @@ void SvHeaderTabListBox::RecalculateAccessibleChildren()
}
}
-bool SvHeaderTabListBox::IsCellCheckBox( tools::Long _nRow, sal_uInt16 _nColumn, TriState& _rState )
+bool SvHeaderTabListBox::IsCellCheckBox( sal_Int32 _nRow, sal_uInt16 _nColumn, TriState& _rState )
{
bool bRet = false;
SvTreeListEntry* pEntry = GetEntry( _nRow );
@@ -557,7 +557,7 @@ bool SvHeaderTabListBox::IsCellCheckBox( tools::Long _nRow, sal_uInt16 _nColumn,
}
return bRet;
}
-tools::Long SvHeaderTabListBox::GetRowCount() const
+sal_Int32 SvHeaderTabListBox::GetRowCount() const
{
return GetEntryCount();
}
@@ -622,7 +622,7 @@ void SvHeaderTabListBox::SelectAll()
SvTreeListBox::SelectAll(true);
}
-void SvHeaderTabListBox::SelectRow( tools::Long _nRow, bool _bSelect, bool )
+void SvHeaderTabListBox::SelectRow( sal_Int32 _nRow, bool _bSelect, bool )
{
Select( GetEntry( _nRow ), _bSelect );
}
@@ -641,13 +641,13 @@ sal_Int32 SvHeaderTabListBox::GetSelectedColumnCount() const
return 0;
}
-bool SvHeaderTabListBox::IsRowSelected( tools::Long _nRow ) const
+bool SvHeaderTabListBox::IsRowSelected( sal_Int32 _nRow ) const
{
SvTreeListEntry* pEntry = GetEntry( _nRow );
return ( pEntry && IsSelected( pEntry ) );
}
-bool SvHeaderTabListBox::IsColumnSelected( tools::Long ) const
+bool SvHeaderTabListBox::IsColumnSelected( sal_Int32 ) const
{
return false;
}
@@ -665,7 +665,7 @@ bool SvHeaderTabListBox::IsCellVisible( sal_Int32, sal_uInt16 ) const
return true;
}
-OUString SvHeaderTabListBox::GetAccessibleCellText( tools::Long _nRow, sal_uInt16 _nColumnPos ) const
+OUString SvHeaderTabListBox::GetAccessibleCellText( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const
{
return GetTabEntryText(_nRow, _nColumnPos);
}