diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-21 12:14:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-25 13:53:21 +0200 |
commit | 4583911575edf98ccd5b15af8eafa6a3a7b64034 (patch) | |
tree | f3f33e53c45dd870f19e7e42db9bb5b4bf1f23bf /connectivity/source/drivers/postgresql/pq_statement.cxx | |
parent | weld HyperLink Dialog (diff) | |
download | core-4583911575edf98ccd5b15af8eafa6a3a7b64034.tar.gz core-4583911575edf98ccd5b15af8eafa6a3a7b64034.zip |
improve loplugin:simplifyconstruct
Change-Id: If863d28c6db470faa0d22273020888d4219e069e
Reviewed-on: https://gerrit.libreoffice.org/74559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_statement.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_statement.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index 3f3e1c14a4fb..f9c9f25abe1d 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -293,8 +293,7 @@ static std::vector< OUString > lookupKeys( else if( -1 == table.indexOf( '.' ) ) { // it wasn't a fully qualified name. Now need to skip through all tables. - Reference< XEnumerationAccess > enumerationAccess = - Reference< XEnumerationAccess > ( tables, UNO_QUERY ); + Reference< XEnumerationAccess > enumerationAccess( tables, UNO_QUERY ); Reference< css::container::XEnumeration > enumeration = enumerationAccess->createEnumeration(); @@ -362,8 +361,7 @@ static std::vector< OUString > lookupKeys( keyType == css::sdbcx::KeyType::PRIMARY ) { Reference< XColumnsSupplier > columns( set, UNO_QUERY ); - Reference< XIndexAccess > indexAccess = - Reference< XIndexAccess > ( columns->getColumns(), UNO_QUERY ); + Reference< XIndexAccess > indexAccess( columns->getColumns(), UNO_QUERY ); int length = indexAccess->getCount(); ret.resize( length ); |