diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 09:52:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 11:53:24 +0200 |
commit | 1003f9f14d83eac9c08a219fa7d8140550de02c7 (patch) | |
tree | 295e5ee4b46d5a72c14f0b4e2a0214ad78457cfc /dbaccess/source/ui/misc/datasourceconnector.cxx | |
parent | fbcd5f074ca3dc105f4fe45b6975c6de2bf60f35 (diff) |
loplugin:referencecasting in dbaccess
Change-Id: If44176f85f460afca92cfa77b3cc1f7107a41690
Reviewed-on: https://gerrit.libreoffice.org/75938
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/misc/datasourceconnector.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/datasourceconnector.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dbaccess/source/ui/misc/datasourceconnector.cxx b/dbaccess/source/ui/misc/datasourceconnector.cxx index f1c8dd1c0032..a7cd4359dfd6 100644 --- a/dbaccess/source/ui/misc/datasourceconnector.cxx +++ b/dbaccess/source/ui/misc/datasourceconnector.cxx @@ -80,10 +80,8 @@ namespace dbaui return xConnection; // get the data source - Reference< XDataSource > xDatasource( - getDataSourceByName( _rDataSourceName, m_pErrorMessageParent, m_xContext, _pErrorInfo ), - UNO_QUERY - ); + Reference< XDataSource > xDatasource = + getDataSourceByName( _rDataSourceName, m_pErrorMessageParent, m_xContext, _pErrorInfo ); if ( xDatasource.is() ) xConnection = connect( xDatasource, _pErrorInfo ); @@ -129,7 +127,7 @@ namespace dbaui if ( !xHandler.is() ) { // instantiate the default SDB interaction handler - xHandler.set( InteractionHandler::createWithParent(m_xContext, VCLUnoHelper::GetInterface(m_pErrorMessageParent)), UNO_QUERY ); + xHandler = InteractionHandler::createWithParent(m_xContext, VCLUnoHelper::GetInterface(m_pErrorMessageParent)); } xConnection = xConnectionCompletion->connectWithCompletion(xHandler); |