summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-04-09 20:11:49 +0200
committerMichael Stahl <mstahl@redhat.com>2013-04-10 16:21:41 +0200
commite816271818c0d08a92d0d7fe37b58556e4724092 (patch)
tree985e2c6284a563866453bdb6fba1c5da3230ccd8 /connectivity
parentslideshow: that define causes -Wunused-macros with 10.6 SDK too (diff)
downloadcore-e816271818c0d08a92d0d7fe37b58556e4724092.tar.gz
core-e816271818c0d08a92d0d7fe37b58556e4724092.zip
connectivty: postgres: fix a bunch of empty for body warnings
Change-Id: Idd91616e43842142450c94ac8a61f4f29f4eb1b7
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx
index cf650668c126..5ac5626e99e6 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.cxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.cxx
@@ -438,28 +438,28 @@ OUString extractTableFromInsert( const OUString & sql )
{
OUString ret;
int i = 0;
- for( ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
&sql.getStr()[i], sql.getLength() - i, "insert" , 6 ) )
{
i += 6;
- for( ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
&sql.getStr()[i], sql.getLength() - i, "into" , 4 ) )
{
i +=4;
- for( ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
int start = i;
bool quote = (sql[i] == '"');
for( i++ ; i < sql.getLength() ; i ++ )
{
if( quote && sql[i] == '"' )
{
- for( i++ ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( '.' == sql[i] )
{
- for( i++ ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( '"' == sql[i] )
{
// the second part of the table name does not use quotes