summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-10-22 07:42:58 +0000
committerRüdiger Timm <rt@openoffice.org>2004-10-22 07:42:58 +0000
commit415040e1f00257052ce6ede15e142a8454c8f27e (patch)
treeaba1f61d08772707d64c4010fefcf36f8de3299c
parent67890b6dee68269927b06d6e11dc15985b96e988 (diff)
INTEGRATION: CWS dba16 (1.12.210); FILE MERGED
2004/10/11 06:12:11 oj 1.12.210.1: #i32931# remove the weak interface, refcount handled by parent
-rw-r--r--connectivity/source/drivers/ado/AKeys.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/drivers/ado/AKeys.cxx b/connectivity/source/drivers/ado/AKeys.cxx
index 01e0039f5280..d7bd2c7fc5fd 100644
--- a/connectivity/source/drivers/ado/AKeys.cxx
+++ b/connectivity/source/drivers/ado/AKeys.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AKeys.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: oj $ $Date: 2002-07-05 09:56:08 $
+ * last change: $Author: rt $ $Date: 2004-10-22 08:42:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -136,20 +136,20 @@ void OKeys::appendObject( const Reference< XPropertySet >& descriptor )
adKeyPrimary, // must be every time adKeyPrimary
vOptional)) )
{
- ADOS::ThrowException(*m_pConnection->getConnection(),*this);
+ ADOS::ThrowException(*m_pConnection->getConnection(),static_cast<XTypeProvider*>(this));
// just make sure that an SQLExceptionis thrown here
- throw SQLException(::rtl::OUString::createFromAscii("Could not append key!"),*this,OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_HY0000),1000,Any());
+ throw SQLException(::rtl::OUString::createFromAscii("Could not append key!"),static_cast<XTypeProvider*>(this),OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_HY0000),1000,Any());
}
}
else
- throw SQLException(::rtl::OUString::createFromAscii("Could not append key!"),*this,OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_HY0000),1000,Any());
+ throw SQLException(::rtl::OUString::createFromAscii("Could not append key!"),static_cast<XTypeProvider*>(this),OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_HY0000),1000,Any());
}
// -------------------------------------------------------------------------
// XDrop
void OKeys::dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName)
{
if(!m_aCollection.Delete(OLEVariant(_sElementName)))
- ADOS::ThrowException(*m_pConnection->getConnection(),*this);
+ ADOS::ThrowException(*m_pConnection->getConnection(),static_cast<XTypeProvider*>(this));
}
// -----------------------------------------------------------------------------
Reference< XNamed > OKeys::cloneObject(const Reference< XPropertySet >& _xDescriptor)