From a1c0e999b271ac4c6ecb163a1cd2a310b87e9dec Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Nov 2017 17:30:42 +0200 Subject: consistently use sal_uInt32 for number formats in sc instead of a mix of short/sal_uLong/sal_uInt32 Change-Id: Ie5bd26e1a6f716c0c4e174a6d560827084b3f421 Reviewed-on: https://gerrit.libreoffice.org/45159 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/inc/dociter.hxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sc/inc/dociter.hxx') diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index 904f471c3c4f..6e8011438d73 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -53,8 +53,8 @@ class ScValueIterator // walk through all values in an area ScDocument* pDoc; const ScAttrArray* pAttrArray; - sal_uLong nNumFormat; // for CalcAsShown - sal_uLong nNumFmtIndex; + sal_uInt32 nNumFormat; // for CalcAsShown + sal_uInt32 nNumFmtIndex; ScAddress maStartPos; ScAddress maEndPos; SCCOL mnCol; @@ -85,7 +85,7 @@ public: ScDocument* pDocument, const ScRange& rRange, SubtotalFlags nSubTotalFlags = SubtotalFlags::NONE, bool bTextAsZero = false ); - void GetCurNumFmtInfo( const ScInterpreterContext& rContext, short& nType, sal_uLong& nIndex ); + void GetCurNumFmtInfo( const ScInterpreterContext& rContext, sal_uInt32& nType, sal_uInt32& nIndex ); /// Does NOT reset rValue if no value found! bool GetFirst( double& rValue, FormulaError& rErr ); @@ -142,13 +142,13 @@ private: ScDocument* mpDoc; const ScInterpreterContext& mrContext; const ScAttrArray* pAttrArray; - sal_uLong nNumFormat; // for CalcAsShown - sal_uLong nNumFmtIndex; + sal_uInt32 nNumFormat; // for CalcAsShown + sal_uInt32 nNumFmtIndex; SCCOL nCol; SCROW nRow; SCROW nAttrEndRow; SCTAB nTab; - short nNumFmtType; + sal_uInt32 nNumFmtType; bool bCalcAsShown; }; @@ -454,7 +454,7 @@ private: const ScAttrArray *pAttrArray; std::unique_ptr pCellIter; - sal_uLong nNumFormat; // for CalcAsShown + sal_uInt32 nNumFormat; // for CalcAsShown SCTAB nEndTab; SCCOL nCurCol; SCROW nCurRow; -- cgit