summaryrefslogtreecommitdiff
path: root/connectivity/source/manager
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-13 17:49:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-13 17:54:24 +0200
commit75838570c39ac5f399c1903d259355f3b80e07da (patch)
tree58af7d68f78dc941744cf99d0f4ee5c20351c173 /connectivity/source/manager
parent9ea1bb2c1d2e20c91a4f51474e1db9316e79b149 (diff)
loplugin:staticcall
Change-Id: I7f22aa5576ca3c62fa363971f4fa5992b7711563
Diffstat (limited to 'connectivity/source/manager')
-rw-r--r--connectivity/source/manager/mdrivermanager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index 202a83500b65..494a3043ddc9 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -123,8 +123,8 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
// we did not load this driver, yet
if ( _rDescriptor.xComponentFactory.is() )
// we have a factory for it
- const_cast< DriverAccess& >( _rDescriptor ).xDriver = _rDescriptor.xDriver.query(
- _rDescriptor.xComponentFactory->createInstanceWithContext( mxContext ) );
+ const_cast< DriverAccess& >( _rDescriptor ).xDriver.set(
+ _rDescriptor.xComponentFactory->createInstanceWithContext( mxContext ), css::uno::UNO_QUERY);
return _rDescriptor;
}
@@ -289,7 +289,7 @@ void OSDBCDriverManager::bootstrapDrivers()
bool bValidDescriptor = false;
// can it tell us something about the implementation name?
- xSI = xSI.query( xFactory );
+ xSI.set(xFactory, css::uno::UNO_QUERY);
if ( xSI.is() )
{ // yes -> no need to load the driver immediately (load it later when needed)
aDriverDescriptor.sImplementationName = xSI->getImplementationName();
@@ -311,7 +311,7 @@ void OSDBCDriverManager::bootstrapDrivers()
{
aDriverDescriptor.xDriver = xDriver;
// and obtain it's implementation name
- xSI = xSI.query( xDriver );
+ xSI.set(xDriver, css::uno::UNO_QUERY);
OSL_ENSURE( xSI.is(), "OSDBCDriverManager::bootstrapDrivers: a driver without service info?" );
if ( xSI.is() )
{