User: kz      
Date: 2008-03-05 16:27:21+0000
Modified:
   dba/connectivity/source/drivers/calc/CDatabaseMetaData.cxx

Log:
 INTEGRATION: CWS dba30a (1.18.6); FILE MERGED
 2008/02/14 09:51:46 oj 1.18.6.1: #i9899# refcount of doc inside the 
connection, will be released when the last table has gone

File Changes:

Directory: /dba/connectivity/source/drivers/calc/
=================================================

File [changed]: CDatabaseMetaData.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/calc/CDatabaseMetaData.cxx?r1=1.18&r2=1.19
Delta lines:  +2 -1
-------------------
--- CDatabaseMetaData.cxx       2008-01-30 07:49:59+0000        1.18
+++ CDatabaseMetaData.cxx       2008-03-05 16:27:18+0000        1.19
@@ -465,7 +465,8 @@
 
        // get the sheet names from the document
 
-       Reference<XSpreadsheetDocument> xDoc = 
((OCalcConnection*)m_pConnection)->getDoc();
+    OCalcConnection::ODocHolder aDocHodler(((OCalcConnection*)m_pConnection));
+       Reference<XSpreadsheetDocument> xDoc = aDocHodler.getDoc();
        if ( !xDoc.is() )
                throw SQLException();
        Reference<XSpreadsheets> xSheets = xDoc->getSheets();




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to