diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-12-04 22:56:51 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-12-27 16:51:26 +0100 |
commit | 7d8919d2d54767d1e34d67129c9e4ae62a1707f3 (patch) | |
tree | 44349d6091f832c3b778cf4035b77bbf3adae837 /sc | |
parent | fb46f61c51872ea85fb3d9f08cc44235bc8c2703 (diff) |
sal_uLong/sal_uIntPtr for ScNumFormatAbbrev
Change-Id: I45f2a43fe4295e44691ab00c93af3fca41b1dcfa
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/zforauto.hxx | 6 | ||||
-rw-r--r-- | sc/source/core/data/dputil.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/zforauto.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/autofmt.cxx | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sc/inc/zforauto.hxx b/sc/inc/zforauto.hxx index fe72450dc7f3..956daf108340 100644 --- a/sc/inc/zforauto.hxx +++ b/sc/inc/zforauto.hxx @@ -34,11 +34,11 @@ class ScNumFormatAbbrev public: ScNumFormatAbbrev(); ScNumFormatAbbrev(const ScNumFormatAbbrev& aFormat); - ScNumFormatAbbrev(sal_uLong nFormat, SvNumberFormatter& rFormatter); + ScNumFormatAbbrev(sal_uInt32 nFormat, SvNumberFormatter& rFormatter); void Load( SvStream& rStream, rtl_TextEncoding eByteStrSet ); // loading of the numberformats void Save( SvStream& rStream, rtl_TextEncoding eByteStrSet ) const; // saving of the numberformats - void PutFormatIndex(sal_uLong nFormat, SvNumberFormatter& rFormatter); - sal_uLong GetFormatIndex( SvNumberFormatter& rFormatter); + void PutFormatIndex(sal_uInt32 nFormat, SvNumberFormatter& rFormatter); + sal_uInt32 GetFormatIndex( SvNumberFormatter& rFormatter); inline bool operator==(const ScNumFormatAbbrev& rNumFormat) const { return ((sFormatstring == rNumFormat.sFormatstring) diff --git a/sc/source/core/data/dputil.cxx b/sc/source/core/data/dputil.cxx index bdf59eebe3a6..93d79ed15a58 100644 --- a/sc/source/core/data/dputil.cxx +++ b/sc/source/core/data/dputil.cxx @@ -123,7 +123,7 @@ OUString ScDPUtil::getDateGroupName( Date aNullDate = *pFormatter->GetNullDate(); long nDays = aDate - aNullDate; - sal_uLong nFormat = pFormatter->GetFormatIndex(NF_DATE_SYS_DDMMM, ScGlobal::eLnge); + const sal_uInt32 nFormat = pFormatter->GetFormatIndex(NF_DATE_SYS_DDMMM, ScGlobal::eLnge); Color* pColor; OUString aStr; pFormatter->GetOutputString(nDays, nFormat, aStr, &pColor); diff --git a/sc/source/core/tool/zforauto.cxx b/sc/source/core/tool/zforauto.cxx index bafd40bf4c32..e428cab8413d 100644 --- a/sc/source/core/tool/zforauto.cxx +++ b/sc/source/core/tool/zforauto.cxx @@ -39,7 +39,7 @@ ScNumFormatAbbrev::ScNumFormatAbbrev(const ScNumFormatAbbrev& aFormat) : { } -ScNumFormatAbbrev::ScNumFormatAbbrev(sal_uLong nFormat, +ScNumFormatAbbrev::ScNumFormatAbbrev(sal_uInt32 nFormat, SvNumberFormatter& rFormatter) { PutFormatIndex(nFormat, rFormatter); @@ -62,7 +62,7 @@ void ScNumFormatAbbrev::Save( SvStream& rStream, rtl_TextEncoding eByteStrSet ) rStream.WriteUInt16( eSysLnge ).WriteUInt16( eLnge ); } -void ScNumFormatAbbrev::PutFormatIndex(sal_uLong nFormat, +void ScNumFormatAbbrev::PutFormatIndex(sal_uInt32 nFormat, SvNumberFormatter& rFormatter) { const SvNumberformat* pFormat = rFormatter.GetEntry(nFormat); @@ -81,7 +81,7 @@ void ScNumFormatAbbrev::PutFormatIndex(sal_uLong nFormat, } } -sal_uLong ScNumFormatAbbrev::GetFormatIndex( SvNumberFormatter& rFormatter) +sal_uInt32 ScNumFormatAbbrev::GetFormatIndex( SvNumberFormatter& rFormatter) { short nType; bool bNewInserted; diff --git a/sc/source/ui/miscdlgs/autofmt.cxx b/sc/source/ui/miscdlgs/autofmt.cxx index 8dd2cc9e2767..7a911868a2a2 100644 --- a/sc/source/ui/miscdlgs/autofmt.cxx +++ b/sc/source/ui/miscdlgs/autofmt.cxx @@ -194,7 +194,7 @@ void ScAutoFmtPreview::DrawString(vcl::RenderContext& rRenderContext, size_t nCo OUString cellString; bool bNumFormat = pCurData->GetIncludeValueFormat(); - sal_uLong nNum; + sal_uInt32 nNum; double nVal; Color* pDummy = nullptr; sal_uInt16 nIndex = static_cast<sal_uInt16>(maArray.GetCellIndex(nCol, nRow, mbRTL)); |