diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-12 22:50:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-12 22:53:29 +0100 |
commit | 843c83f6405ab4f1a4f7734ec66f2b62248f4e34 (patch) | |
tree | 41357172bcbb6c556d5561f52f26613a7356ca17 /connectivity/source/drivers | |
parent | 60a6daf78c4013f11510058a7015ad023187c544 (diff) |
WaE: fix some "empty body" warnings on Mac
Change-Id: Ib65d9dac988851fa90a44cad246ac24e8bfd3370
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_statics.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_statics.cxx b/connectivity/source/drivers/postgresql/pq_statics.cxx index 312a9a380741..639643afefb6 100644 --- a/connectivity/source/drivers/postgresql/pq_statics.cxx +++ b/connectivity/source/drivers/postgresql/pq_statics.cxx @@ -93,15 +93,16 @@ struct DefColumnMetaData #define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) struct BaseTypeDef { const char * typeName; sal_Int32 value; }; -static Sequence< OUString > createStringSequence( const char * name[] ) +static Sequence< OUString > createStringSequence( const char * names[] ) { - int length; - for( length = 0; name[length] ; length ++ ); + int length = 0; + while (names[length]) + ++length; Sequence< OUString > seq( length ); for( int i = 0; i < length; i ++ ) { - seq[i] = OUString( name[i] , strlen( name[i] ), RTL_TEXTENCODING_ASCII_US ); + seq[i] = OUString( names[i] , strlen( names[i] ), RTL_TEXTENCODING_ASCII_US ); } return seq; } |