summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-28 15:44:10 +0200
committerNoel Grandin <noel@peralex.com>2015-05-29 08:48:41 +0200
commit6140ca9f1d728475e332f9fa96ee62dda58687ea (patch)
tree284733762d73048939675ca39a8932a3ca2009f5 /connectivity
parentafcf1ecee1af1312551583b9fc860c1881ba2134 (diff)
loplugin:loopvartoosmall
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/dbtools.cxx2
-rw-r--r--connectivity/source/parse/sqliterator.cxx8
-rw-r--r--connectivity/source/parse/sqlnode.cxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index f49bdc6202de..1d8d157e638b 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -964,7 +964,7 @@ try
OUString sPropClassId("ClassId");
OUString sFormattedServiceName( "com.sun.star.form.component.FormattedField" );
- for (sal_Int16 i=0; i<aOldProperties.getLength(); ++i)
+ for (sal_Int32 i=0; i<aOldProperties.getLength(); ++i)
{
if ( (!pOldProps[i].Name.equals(sPropDefaultControl))
&& (!pOldProps[i].Name.equals(sPropLabelControl))
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index 4e5b8b473574..6b202c3575a4 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -525,7 +525,7 @@ void OSQLParseTreeIterator::getQualified_join( OSQLTables& _rTables, const OSQLP
{
const OSQLParseNode* pColumnCommalist = pJoin_spec->getChild(2);
// All columns in the column_commalist ...
- for (sal_uInt32 i = 0; i < pColumnCommalist->count(); i++)
+ for (size_t i = 0; i < pColumnCommalist->count(); i++)
{
const OSQLParseNode * pCol = pColumnCommalist->getChild(i);
// add twice because the column must exists in both tables
@@ -619,7 +619,7 @@ void OSQLParseTreeIterator::getSelect_statement(OSQLTables& _rTables,const OSQLP
const OSQLParseNode* pTableName = NULL;
OUString aTableRange;
- for (sal_uInt32 i = 0; i < pTableRefCommalist->count(); i++)
+ for (size_t i = 0; i < pTableRefCommalist->count(); i++)
{ // Process FROM clause
aTableRange.clear();
@@ -868,7 +868,7 @@ void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNo
if (!SQL_ISRULE(pSelectNode,base_table_element_commalist))
return ;
- for (sal_uInt32 i = 0; i < pSelectNode->count(); i++)
+ for (size_t i = 0; i < pSelectNode->count(); i++)
{
OSQLParseNode *pColumnRef = pSelectNode->getChild(i);
@@ -945,7 +945,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele
// SELECT column[,column] oder SELECT COUNT(*) ...
OSQLParseNode * pSelection = pSelectNode->getChild(2);
- for (sal_uInt32 i = 0; i < pSelection->count(); i++)
+ for (size_t i = 0; i < pSelection->count(); i++)
{
OSQLParseNode *pColumnRef = pSelection->getChild(i);
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 1293364ba695..5144ea8dfa70 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -1756,7 +1756,7 @@ bool OSQLParseNode::addDateValue(OUStringBuffer& rString, const SQLParseNodePara
void OSQLParseNode::replaceNodeValue(const OUString& rTableAlias, const OUString& rColumnName)
{
- for (sal_uInt32 i=0;i<count();++i)
+ for (size_t i=0;i<count();++i)
{
if (SQL_ISRULE(this,column_ref) && count() == 1 && getChild(0)->getTokenValue() == rColumnName)
{