summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/ado/APreparedStatement.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-08-24 05:19:41 +0000
committerOcke Janssen <oj@openoffice.org>2001-08-24 05:19:41 +0000
commit2d7388c15291c6b0ca4ea29837c7c1b92ad23a53 (patch)
tree162ed438d04c164f892a2936a4ff2828d07ab820 /connectivity/source/drivers/ado/APreparedStatement.cxx
parentbb6d7df690687f1e066b09d72fb0a2204d12b5aa (diff)
#90015# code corrcetions for some speedup's
Diffstat (limited to 'connectivity/source/drivers/ado/APreparedStatement.cxx')
-rw-r--r--connectivity/source/drivers/ado/APreparedStatement.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/connectivity/source/drivers/ado/APreparedStatement.cxx b/connectivity/source/drivers/ado/APreparedStatement.cxx
index 0e518285d4d8..f174206a8dd8 100644
--- a/connectivity/source/drivers/ado/APreparedStatement.cxx
+++ b/connectivity/source/drivers/ado/APreparedStatement.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: APreparedStatement.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: oj $ $Date: 2001-05-17 07:26:59 $
+ * last change: $Author: oj $ $Date: 2001-08-24 06:13:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,13 +119,11 @@ OPreparedStatement::OPreparedStatement( OConnection* _pConnection,const OTypeInf
Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OStatement_Base::queryInterface(rType);
- if(!aRet.hasValue())
- aRet = ::cppu::queryInterface( rType,
+ return aRet.hasValue() ? aRet : ::cppu::queryInterface( rType,
static_cast< XPreparedStatement*>(this),
static_cast< XParameters*>(this),
static_cast< XPreparedBatchExecution*>(this),
static_cast< XResultSetMetaDataSupplier*>(this));
- return aRet;
}
// -------------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OPreparedStatement::getTypes( ) throw(::com::sun::star::uno::RuntimeException)