summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/hsqldb/HViews.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 00:31:40 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 00:31:40 +0000
commitad8502a975b81b37e3187555a278dadc9e612cdb (patch)
tree36ab44a4a44c260eccbb78d22e1a1e1a70dc7e03 /connectivity/source/drivers/hsqldb/HViews.cxx
parentcd6e0e6bbfdd3dd91fa15a9555209ab12c92e4b0 (diff)
INTEGRATION: CWS warnings01 (1.3.30); FILE MERGED
2005/11/16 12:59:08 fs 1.3.30.2: #i57457# warning free code 2005/11/07 14:43:38 fs 1.3.30.1: #i57457# warning-free code
Diffstat (limited to 'connectivity/source/drivers/hsqldb/HViews.cxx')
-rw-r--r--connectivity/source/drivers/hsqldb/HViews.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/connectivity/source/drivers/hsqldb/HViews.cxx b/connectivity/source/drivers/hsqldb/HViews.cxx
index db50adf4b5f6..a523ddcbd15d 100644
--- a/connectivity/source/drivers/hsqldb/HViews.cxx
+++ b/connectivity/source/drivers/hsqldb/HViews.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: HViews.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 06:05:46 $
+ * last change: $Author: hr $ $Date: 2006-06-20 01:31:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -144,24 +144,18 @@ void OViews::appendObject( const Reference< XPropertySet >& descriptor )
}
// -------------------------------------------------------------------------
// XDrop
-void OViews::dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName)
+void OViews::dropObject(sal_Int32 _nPos,const ::rtl::OUString /*_sElementName*/)
{
if ( m_bInDrop )
return;
- Reference< ::com::sun::star::lang::XUnoTunnel> xTunnel(getObject(_nPos),UNO_QUERY);
- sal_Bool bIsNew = sal_False;
- if(xTunnel.is())
- {
- connectivity::sdbcx::ODescriptor* pTable = (connectivity::sdbcx::ODescriptor*)xTunnel->getSomething(connectivity::sdbcx::ODescriptor::getUnoTunnelImplementationId());
- if(pTable)
- bIsNew = pTable->isNew();
- }
+ Reference< XInterface > xObject( getObject( _nPos ) );
+ sal_Bool bIsNew = connectivity::sdbcx::ODescriptor::isNew( xObject );
if (!bIsNew)
{
::rtl::OUString aSql = ::rtl::OUString::createFromAscii("DROP VIEW");
- Reference<XPropertySet> xProp(xTunnel,UNO_QUERY);
+ Reference<XPropertySet> xProp(xObject,UNO_QUERY);
aSql += ::dbtools::composeTableName(m_xMetaData,xProp,sal_True,::dbtools::eInTableDefinitions);
Reference<XConnection> xConnection = static_cast<OHCatalog&>(m_rParent).getConnection();