connectivity/source/drivers/postgresql/pq_statics.cxx |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 843c83f6405ab4f1a4f7734ec66f2b62248f4e34
Author: Caolán McNamara <caol...@redhat.com>
Date:   Wed Sep 12 22:50:45 2012 +0100

    WaE: fix some "empty body" warnings on Mac
    
    Change-Id: Ib65d9dac988851fa90a44cad246ac24e8bfd3370

diff --git a/connectivity/source/drivers/postgresql/pq_statics.cxx 
b/connectivity/source/drivers/postgresql/pq_statics.cxx
index 312a9a3..639643a 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;
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to