diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-09-12 20:21:21 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-12 20:22:36 +0200 |
commit | 1488e24a340333d4ddc954643b9cfd56849b45a4 (patch) | |
tree | 0f38fef1172dc23c09ac0165172631ba9a402d57 /connectivity | |
parent | 55223696a24f9374ce28b8352c0e3726976b9000 (diff) |
connectivity: fix some "empty body" warnings on Mac
Change-Id: I832b369d87da9b622759bf7ddd14f95475256c38
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_preparedstatement.cxx | 13 |
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 ++; } |