diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-08-24 05:19:41 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-08-24 05:19:41 +0000 |
commit | 6da182cc171ae7efb8de9fe8595127eb71c9b47f (patch) | |
tree | 951c1a53b0b001df755c91031e7e6aff9ab37680 /connectivity/source/drivers/adabas/BDriver.cxx | |
parent | da1264220032cd5dbf7a3770cb83222342377106 (diff) |
#90015# code corrcetions for some speedup's
Diffstat (limited to 'connectivity/source/drivers/adabas/BDriver.cxx')
-rw-r--r-- | connectivity/source/drivers/adabas/BDriver.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/connectivity/source/drivers/adabas/BDriver.cxx b/connectivity/source/drivers/adabas/BDriver.cxx index 021d046e62..5aeab59c0d 100644 --- a/connectivity/source/drivers/adabas/BDriver.cxx +++ b/connectivity/source/drivers/adabas/BDriver.cxx @@ -2,9 +2,9 @@ * * $RCSfile: BDriver.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: fs $ $Date: 2001-06-14 09:15:25 $ + * last change: $Author: oj $ $Date: 2001-08-24 06:12:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -204,9 +204,7 @@ Sequence< ::rtl::OUString > SAL_CALL ODriver::getSupportedServiceNames( ) throw Any SAL_CALL ODriver::queryInterface( const Type & rType ) throw(RuntimeException) { Any aRet = ::cppu::queryInterface(rType, static_cast<XDataDefinitionSupplier*>(this)); - if(aRet.hasValue()) - return aRet; - return ODriver_BASE::queryInterface(rType); + return aRet.hasValue() ? aRet : ODriver_BASE::queryInterface(rType); } //------------------------------------------------------------------ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ODriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ) throw( ::com::sun::star::uno::Exception ) |