summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/dbase/DCatalog.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-10-05 05:15:40 +0000
committerOcke Janssen <oj@openoffice.org>2001-10-05 05:15:40 +0000
commit32225160684c7429a28b59c8e0c60bc092d25b46 (patch)
treee777ed33ce888a09e7f20f29203083129a021472 /connectivity/source/drivers/dbase/DCatalog.cxx
parent9f7a87d03940300314ed42fa61113ccafc39ffe5 (diff)
#92636# hold catalog as weak
Diffstat (limited to 'connectivity/source/drivers/dbase/DCatalog.cxx')
-rw-r--r--connectivity/source/drivers/dbase/DCatalog.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/connectivity/source/drivers/dbase/DCatalog.cxx b/connectivity/source/drivers/dbase/DCatalog.cxx
index 1f8504d5e157..9d16f5d681b4 100644
--- a/connectivity/source/drivers/dbase/DCatalog.cxx
+++ b/connectivity/source/drivers/dbase/DCatalog.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DCatalog.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: oj $ $Date: 2001-05-02 12:54:57 $
+ * last change: $Author: oj $ $Date: 2001-10-05 06:15:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,9 +88,6 @@ using namespace connectivity::dbase;
// -------------------------------------------------------------------------
ODbaseCatalog::ODbaseCatalog(ODbaseConnection* _pCon) : file::OFileCatalog(_pCon)
{
- osl_incrementInterlockedCount( &m_refCount );
- refreshTables();
- osl_decrementInterlockedCount( &m_refCount );
}
// -------------------------------------------------------------------------
void ODbaseCatalog::refreshTables()
@@ -107,8 +104,9 @@ void ODbaseCatalog::refreshTables()
aVector.push_back(xRow->getString(3));
}
if(m_pTables)
- delete m_pTables;
- m_pTables = new ODbaseTables(m_xMetaData,*this,m_aMutex,aVector);
+ m_pTables->reFill(aVector);
+ else
+ m_pTables = new ODbaseTables(m_xMetaData,*this,m_aMutex,aVector);
}