summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-12-07 14:38:02 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-12-27 16:51:27 +0100
commit4088208d731ac281c88a8854978b683aee477385 (patch)
tree769a551bccb77347c79776be13720d598bee2439 /sc
parent672b31d516888f0f1cd0fbfdd3fafc430a233dcb (diff)
sal_uLong to sal_uInt32/sal_uInt64
Change-Id: I8f563ae1de4ae9e032ffbcfae194372b5501a0ee
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/global.hxx3
-rw-r--r--sc/source/core/data/formulacell.cxx6
-rw-r--r--sc/source/core/data/global.cxx8
3 files changed, 8 insertions, 9 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 7f74550281bd..b236bad1d0c5 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -535,8 +535,7 @@ public:
SfxObjectShell* pShell );
SC_DLLPUBLIC static OUString GetDocTabName( const OUString& rFileName,
const OUString& rTabName );
- SC_DLLPUBLIC static sal_uLong GetStandardFormat( SvNumberFormatter&,
- sal_uLong nFormat, short nType );
+ SC_DLLPUBLIC static sal_uInt32 GetStandardFormat( SvNumberFormatter&, sal_uInt32 nFormat, short nType );
SC_DLLPUBLIC static sal_uInt16 GetStandardRowHeight();
SC_DLLPUBLIC static double nScreenPPTX;
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index e574af78c742..1c6d358b5961 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1911,7 +1911,7 @@ void ScFormulaCell::InterpretTail( ScInterpretTailParameter eTailParam )
bool bSetFormat = true;
const short nOldFormatType = nFormatType;
nFormatType = p->GetRetFormatType();
- sal_Int32 nFormatIndex = p->GetRetFormatIndex();
+ sal_uInt32 nFormatIndex = p->GetRetFormatIndex();
if (nFormatType == css::util::NumberFormat::TEXT)
{
@@ -2447,10 +2447,10 @@ void ScFormulaCell::GetURLResult( OUString& rURL, OUString& rCellText )
// Cell Text uses the Cell format while the URL uses
// the default format for the type.
- sal_uLong nCellFormat = pDocument->GetNumberFormat( aPos );
+ const sal_uInt32 nCellFormat = pDocument->GetNumberFormat( aPos );
SvNumberFormatter* pFormatter = pDocument->GetFormatTable();
- sal_uLong nURLFormat = ScGlobal::GetStandardFormat( *pFormatter, nCellFormat, css::util::NumberFormat::NUMBER);
+ const sal_uInt32 nURLFormat = ScGlobal::GetStandardFormat( *pFormatter, nCellFormat, css::util::NumberFormat::NUMBER);
if ( IsValue() )
{
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 2053f5503176..bc0cdcf9b70e 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -170,8 +170,8 @@ bool ScGlobal::HasAttrChanged( const SfxItemSet& rNewAttrs,
return bInvalidate;
}
-sal_uLong ScGlobal::GetStandardFormat( SvNumberFormatter& rFormatter,
- sal_uLong nFormat, short nType )
+sal_uInt32 ScGlobal::GetStandardFormat( SvNumberFormatter& rFormatter,
+ sal_uInt32 nFormat, short nType )
{
const SvNumberformat* pFormat = rFormatter.GetEntry( nFormat );
if ( pFormat )
@@ -860,7 +860,7 @@ bool ScGlobal::EETextObjEqual( const EditTextObject* pObj1,
SvMemoryStream aStream2;
pObj1->Store( aStream1 );
pObj2->Store( aStream2 );
- sal_uLong nSize = aStream1.Tell();
+ const sal_uInt64 nSize = aStream1.Tell();
if ( aStream2.Tell() == nSize )
if ( !memcmp( aStream1.GetData(), aStream2.GetData(), (sal_uInt16) nSize ) )
return true;
@@ -1044,7 +1044,7 @@ void ScGlobal::AddLanguage( SfxItemSet& rSet, SvNumberFormatter& rFormatter )
const SvNumberformat* pHardFormat = rFormatter.GetEntry(
static_cast<const SfxUInt32Item*>(pHardItem)->GetValue() );
- sal_uLong nParentFmt = 0; // Pool default
+ sal_uInt32 nParentFmt = 0; // Pool default
const SfxItemSet* pParent = rSet.GetParent();
if ( pParent )
nParentFmt = static_cast<const SfxUInt32Item&>(pParent->Get( ATTR_VALUE_FORMAT )).GetValue();