summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-29 02:34:08 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-30 16:28:56 +0100
commit34012133266714259e5b009851924d176199a60d (patch)
tree03ae585c45423e4e71b6e6a2b2595448050b159b
parentuse DocumentImport for csv import, related fdo#69006 (diff)
downloadcore-34012133266714259e5b009851924d176199a60d.tar.gz
core-34012133266714259e5b009851924d176199a60d.zip
use sal_Int32 instead of xub_StrLen
Change-Id: Id868448b5c981d744a066c738b344752bcd0faab
-rw-r--r--sc/source/ui/docshell/impex.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 1399da28bd1c..df74149d8f76 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -625,7 +625,7 @@ static bool lcl_appendLineData( OUString& rField, const sal_Unicode* p1, const s
OSL_ENSURE( rField.getLength() + (p2 - p1) <= STRING_MAXLEN, "lcl_appendLineData: data overflow");
if (rField.getLength() + (p2 - p1) <= STRING_MAXLEN)
{
- rField += OUString( p1, sal::static_int_cast<xub_StrLen>( p2 - p1 ) );
+ rField += OUString( p1, sal::static_int_cast<sal_Int32>( p2 - p1 ) );
return true;
}
else
@@ -763,7 +763,7 @@ static const sal_Unicode* lcl_ScanSylkString( const sal_Unicode* p,
}
if (!pEndQuote)
pEndQuote = p; // Take all data as string.
- rString += OUString(pStartQuote + 1, sal::static_int_cast<xub_StrLen>( pEndQuote - pStartQuote - 1 ) );
+ rString += OUString(pStartQuote + 1, sal::static_int_cast<sal_Int32>( pEndQuote - pStartQuote - 1 ) );
lcl_UnescapeSylk( rString, eVersion);
return p;
}
@@ -785,7 +785,7 @@ static const sal_Unicode* lcl_ScanSylkFormula( const sal_Unicode* p,
}
++p;
}
- rString += OUString( pStart, sal::static_int_cast<xub_StrLen>( p - pStart));
+ rString += OUString( pStart, sal::static_int_cast<sal_Int32>( p - pStart));
lcl_UnescapeSylk( rString, eVersion);
}
else
@@ -826,7 +826,7 @@ static const sal_Unicode* lcl_ScanSylkFormula( const sal_Unicode* p,
{
while (*p && *p != ';')
++p;
- rString += OUString( pStart, sal::static_int_cast<xub_StrLen>( p - pStart));
+ rString += OUString( pStart, sal::static_int_cast<sal_Int32>( p - pStart));
}
}
return p;
@@ -1011,9 +1011,9 @@ static bool lcl_PutString(
else if ( nColFormat != SC_COL_STANDARD ) // Datumsformate
{
const sal_uInt16 nMaxNumberParts = 7; // Y-M-D h:m:s.t
- xub_StrLen nLen = rStr.getLength();
- xub_StrLen nStart[nMaxNumberParts];
- xub_StrLen nEnd[nMaxNumberParts];
+ sal_Int32 nLen = rStr.getLength();
+ sal_Int32 nStart[nMaxNumberParts];
+ sal_Int32 nEnd[nMaxNumberParts];
sal_uInt16 nDP, nMP, nYP;
switch ( nColFormat )
@@ -1026,7 +1026,7 @@ static bool lcl_PutString(
sal_uInt16 nFound = 0;
bool bInNum = false;
- for ( xub_StrLen nPos=0; nPos<nLen && (bInNum ||
+ for ( sal_Int32 nPos=0; nPos<nLen && (bInNum ||
nFound<nMaxNumberParts); nPos++ )
{
if (bInNum && nFound == 3 && nColFormat == SC_COL_YMD &&
@@ -1052,8 +1052,8 @@ static bool lcl_PutString(
{
// try to break one number (without separators) into date fields
- xub_StrLen nDateStart = nStart[0];
- xub_StrLen nDateLen = nEnd[0] + 1 - nDateStart;
+ sal_Int32 nDateStart = nStart[0];
+ sal_Int32 nDateLen = nEnd[0] + 1 - nDateStart;
if ( nDateLen >= 5 && nDateLen <= 8 &&
ScGlobal::pCharClass->isNumeric( rStr.copy( nDateStart, nDateLen ) ) )