Kaydet (Commit) 84d63f34 authored tarafından Kurt Zenker's avatar Kurt Zenker

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
üst 21761584
......@@ -4,9 +4,9 @@
*
* $RCSfile: CDatabaseMetaData.cxx,v $
*
* $Revision: 1.18 $
* $Revision: 1.19 $
*
* last change: $Author: rt $ $Date: 2008-01-30 07:49:59 $
* last change: $Author: kz $ $Date: 2008-03-05 16:27:18 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -465,7 +465,8 @@ Reference< XResultSet > SAL_CALL OCalcDatabaseMetaData::getTables(
// 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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment