diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-04-09 20:11:49 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-04-10 16:21:41 +0200 |
commit | e816271818c0d08a92d0d7fe37b58556e4724092 (patch) | |
tree | 985e2c6284a563866453bdb6fba1c5da3230ccd8 /connectivity | |
parent | 5e7c0378c21a1a06eefecec4b29b4ae5f9ae4707 (diff) |
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.cxx | 10 |
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 |