User: hr Date: 06/06/19 18:31:42 Modified: /dba/connectivity/source/drivers/hsqldb/ HViews.cxx
Log: 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 File Changes: Directory: /dba/connectivity/source/drivers/hsqldb/ =================================================== File [changed]: HViews.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/hsqldb/HViews.cxx?r1=1.3&r2=1.4 Delta lines: +9 -15 -------------------- --- HViews.cxx 8 Sep 2005 06:05:46 -0000 1.3 +++ HViews.cxx 20 Jun 2006 01:31:40 -0000 1.4 @@ -144,24 +144,18 @@ } // ------------------------------------------------------------------------- // 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(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
