From 066799b4a162aa0a4bc6aa28339f1f943a13971e Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 8 Feb 2021 15:50:13 +0200 Subject: loplugin:referencecasting check for Reference::query Change-Id: I008d16d933c70df132699872ac4c39a5c1f87b34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110592 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/drivers/file/FDriver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connectivity/source/drivers') diff --git a/connectivity/source/drivers/file/FDriver.cxx b/connectivity/source/drivers/file/FDriver.cxx index 16cf60e02cb4..54be5f952429 100644 --- a/connectivity/source/drivers/file/FDriver.cxx +++ b/connectivity/source/drivers/file/FDriver.cxx @@ -181,7 +181,7 @@ Reference< XTablesSupplier > SAL_CALL OFileDriver::getDataDefinitionByConnection OConnection* pConnection = nullptr; for (auto const& elem : m_xConnections) { - if (static_cast( Reference< XConnection >::query(elem.get().get()).get() ) == pSearchConnection) + if (static_cast( Reference< XConnection >::query(elem.get()).get() ) == pSearchConnection) { pConnection = pSearchConnection; break; -- cgit