diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-02 18:16:58 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:17 +0100 |
commit | d612aa7f6fc67de330f077350c7f94eb5cb56845 (patch) | |
tree | d29bf8a0f7badc9c2cdba21e7122460cb6dbb897 | |
parent | e1423f5a92d55149d4765cefc9ac9e5168e40ef0 (diff) |
avoid name shadowing warning
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_databasemetadata.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index 10456b3f6c6e..82b44e25ea20 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -1568,9 +1568,11 @@ static void addPrivilegesToVector( } } - Reference< XCloseable > closeable( statement, UNO_QUERY ); - if( closeable.is() ) - closeable->close(); + { + Reference< XCloseable > closeable( statement, UNO_QUERY ); + if( closeable.is() ) + closeable->close(); + } SequenceAnyVector::iterator ii = vec.begin(); @@ -1609,9 +1611,11 @@ static void addPrivilegesToVector( row[4] <<= OUString::valueOf( index ); index ++; } - Reference< XCloseable > closeable( statement, UNO_QUERY ); - if( closeable.is() ) - closeable->close(); + { + Reference< XCloseable > closeable( statement, UNO_QUERY ); + if( closeable.is() ) + closeable->close(); + } ret[elements] = row; elements ++; } |