summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-28 12:21:40 +0200
committerNoel Grandin <noel@peralex.com>2013-11-06 08:51:22 +0200
commit296329a926877d069f55364a177d734f385ce7ae (patch)
treed95dff15946339b5a2df8c7c29159b97137ee30e /connectivity
parentebeff1814cbecfba9bbeaeba8067b58f71703a39 (diff)
convert xub_StrLen to sal_Int32
convert for loops using xub_StrLen to use sal_Int32 Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/quotedstring.cxx2
-rw-r--r--connectivity/source/drivers/flat/ETable.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/file/quotedstring.cxx b/connectivity/source/drivers/file/quotedstring.cxx
index f69230dce008..5cbe815f9e76 100644
--- a/connectivity/source/drivers/file/quotedstring.cxx
+++ b/connectivity/source/drivers/file/quotedstring.cxx
@@ -142,7 +142,7 @@ namespace connectivity
sBuff.append(cChar);
}
}
- } // for( xub_StrLen i = nStartPos; i < nLen; ++i )
+ } // for( sal_Int32 i = nStartPos; i < nLen; ++i )
return sBuff.makeStringAndClear();
}
return OUString();
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx
index bace952397dc..6e5f148fb6d6 100644
--- a/connectivity/source/drivers/flat/ETable.cxx
+++ b/connectivity/source/drivers/flat/ETable.cxx
@@ -140,7 +140,7 @@ void OFlatTable::fillColumns(const ::com::sun::star::lang::Locale& _aLocale)
sal_Int32 nStartPosHeaderLine = 0; // use for efficient way to get the tokens
sal_Int32 nStartPosFirstLine = 0; // use for efficient way to get the tokens
sal_Int32 nStartPosFirstLine2 = 0;
- for (xub_StrLen i = 0; i < nFieldCount; i++)
+ for( sal_Int32 i = 0; i < nFieldCount; i++ )
{
if ( nRowCount == 0)
{
@@ -173,7 +173,7 @@ void OFlatTable::fillColumns(const ::com::sun::star::lang::Locale& _aLocale)
}
while(nRowCount < nMaxRowsToScan && bRead);
- for (xub_StrLen i = 0; i < nFieldCount; i++)
+ for( sal_Int32 i = 0; i < nFieldCount; i++ )
{
// check if the columname already exists
OUString aAlias(aColumnNames[i]);
@@ -242,7 +242,7 @@ void OFlatTable::impl_fillColumnInfo_nothrow(QuotedTokenizedString& aFirstLine,
xub_StrLen nDot = 0;
xub_StrLen nDecimalDelCount = 0;
xub_StrLen nSpaceCount = 0;
- for (xub_StrLen j = 0; j < aField2.getLength(); j++)
+ for( sal_Int32 j = 0; j < aField2.getLength(); j++ )
{
const sal_Unicode c = aField2[j];
if ( j == nSpaceCount && m_cFieldDelimiter != 32 && c == 32 )
@@ -275,7 +275,7 @@ void OFlatTable::impl_fillColumnInfo_nothrow(QuotedTokenizedString& aFirstLine,
{
// Is the delimiter correct?
const OUString aValue = aField2.getToken(0,cDecimalDelimiter);
- for (sal_Int32 j = aValue.getLength() - 4; j >= 0; j -= 4)
+ for( sal_Int32 j = aValue.getLength() - 4; j >= 0; j -= 4)
{
const sal_Unicode c = aValue[j];
// just digits, decimal- and thousands-delimiter?