summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-12 20:21:21 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-12 20:22:36 +0200
commit1488e24a340333d4ddc954643b9cfd56849b45a4 (patch)
tree0f38fef1172dc23c09ac0165172631ba9a402d57 /connectivity
parentBin pointer to non-existent class (diff)
downloadcore-1488e24a340333d4ddc954643b9cfd56849b45a4.tar.gz
core-1488e24a340333d4ddc954643b9cfd56849b45a4.zip
connectivity: fix some "empty body" warnings on Mac
Change-Id: I832b369d87da9b622759bf7ddd14f95475256c38
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/pq_preparedstatement.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
index 9c35eefc63eb..ecd333f834bb 100644
--- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
+++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
@@ -170,7 +170,10 @@ static bool isOperator( char c )
static const char * operators = "<>=()!/&%.,;";
const char * w = operators;
- for( ; *w && *w != c ; w ++);
+ while (*w && *w != c)
+ {
+ ++w;
+ }
return *w != 0;
}
@@ -425,8 +428,12 @@ sal_Bool PreparedStatement::execute( )
buf.append( m_vars[vars] );
// skip to the end of the named parameter
- for( ; index < str.getLength() &&
- ! ( isWhitespace( str[index] ) || isOperator( str[index] ) ) ; index ++ );
+ while ( index < str.getLength()
+ && !( isWhitespace(str[index])
+ || isOperator (str[index])))
+ {
+ ++index;
+ }
start = index;
vars ++;
}