From d612aa7f6fc67de330f077350c7f94eb5cb56845 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Tue, 2 Aug 2011 18:16:58 +0200 Subject: avoid name shadowing warning --- .../source/drivers/postgresql/pq_databasemetadata.cxx | 16 ++++++++++------ 1 file 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 ++; } -- cgit