summaryrefslogtreecommitdiff
path: root/sc/inc/dptabres.hxx
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 /sc/inc/dptabres.hxx
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 'sc/inc/dptabres.hxx')
-rw-r--r--sc/inc/dptabres.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx
index 7a8f23564720..8e2ea36f1b42 100644
--- a/sc/inc/dptabres.hxx
+++ b/sc/inc/dptabres.hxx
@@ -105,7 +105,7 @@ struct ScDPSubTotalState
class ScDPRunningTotalState
{
public:
- typedef std::vector<tools::Long> IndexArray; /// array of long integers terminated by -1.
+ typedef std::vector<sal_Int32> IndexArray; /// array of sal_Int32 terminated by -1.
ScDPRunningTotalState( ScDPResultMember* pColRoot, ScDPResultMember* pRowRoot );
@@ -117,8 +117,8 @@ public:
const IndexArray& GetRowVisible() const { return maRowVisible;}
const IndexArray& GetRowSorted() const { return maRowSorted;}
- void AddColIndex( tools::Long nVisible, tools::Long nSorted );
- void AddRowIndex( tools::Long nVisible, tools::Long nSorted );
+ void AddColIndex( sal_Int32 nVisible, tools::Long nSorted );
+ void AddRowIndex( sal_Int32 nVisible, tools::Long nSorted );
void RemoveColIndex();
void RemoveRowIndex();
@@ -562,12 +562,12 @@ public:
// called for the reference dimension
ScDPDataMember* GetRowReferenceMember(
const ScDPRelativePos* pMemberPos, const OUString* pName,
- const tools::Long* pRowIndexes, const tools::Long* pColIndexes ) const;
+ const sal_Int32* pRowIndexes, const sal_Int32* pColIndexes ) const;
// uses row root member from ScDPRunningTotalState
static ScDPDataMember* GetColReferenceMember(
const ScDPRelativePos* pMemberPos, const OUString* pName,
- tools::Long nRefDimPos, const ScDPRunningTotalState& rRunning );
+ sal_Int32 nRefDimPos, const ScDPRunningTotalState& rRunning );
#if DUMP_PIVOT_TABLE
void DumpState( const ScDPResultMember* pRefMember, ScDocument* pDoc, ScAddress& rPos ) const;