summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/dbase/DIndexes.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 16:00:25 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 16:00:25 +0000
commit11b35de26e11b4abd277d7a5736d6a94c4a18adb (patch)
treede465d5a4aa84c6e1d7827d63bb053b170761802 /connectivity/source/drivers/dbase/DIndexes.cxx
parentcac9af768c3841a813532d82591da4a64ed87c91 (diff)
INTEGRATION: CWS insight01 (1.11.114); FILE MERGED
2004/02/12 16:06:32 oj 1.11.114.1: #111075# fix refcount problem
Diffstat (limited to 'connectivity/source/drivers/dbase/DIndexes.cxx')
-rw-r--r--connectivity/source/drivers/dbase/DIndexes.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/connectivity/source/drivers/dbase/DIndexes.cxx b/connectivity/source/drivers/dbase/DIndexes.cxx
index 04fdfdb4f7e9..929e7a1c061f 100644
--- a/connectivity/source/drivers/dbase/DIndexes.cxx
+++ b/connectivity/source/drivers/dbase/DIndexes.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DIndexes.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: oj $ $Date: 2001-10-12 11:46:05 $
+ * last change: $Author: hr $ $Date: 2004-08-02 17:00:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -147,15 +147,11 @@ void ODbaseIndexes::appendObject( const Reference< XPropertySet >& descriptor )
// XDrop
void ODbaseIndexes::dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName)
{
- ObjectIter aIter = m_aElements[_nPos];
- if(!aIter->second.is())
- aIter->second = createObject(_sElementName);
-
- Reference< XUnoTunnel> xTunnel(aIter->second.get(),UNO_QUERY);
- if(xTunnel.is())
+ Reference< XUnoTunnel> xTunnel(getObject(_nPos),UNO_QUERY);
+ if ( xTunnel.is() )
{
ODbaseIndex* pIndex = (ODbaseIndex*)xTunnel->getSomething(ODbaseIndex::getUnoTunnelImplementationId());
- if(pIndex)
+ if ( pIndex )
pIndex->DropImpl();
}