User: hr Date: 06/06/19 18:53:33 Modified: /dba/connectivity/source/drivers/mysql/ YTables.cxx
Log: INTEGRATION: CWS warnings01 (1.7.30); FILE MERGED 2005/11/07 14:43:59 fs 1.7.30.1: #i57457# warning-free code File Changes: Directory: /dba/connectivity/source/drivers/mysql/ ================================================== File [changed]: YTables.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysql/YTables.cxx?r1=1.7&r2=1.8 Delta lines: +7 -13 -------------------- --- YTables.cxx 8 Sep 2005 06:32:07 -0000 1.7 +++ YTables.cxx 20 Jun 2006 01:53:30 -0000 1.8 @@ -187,14 +187,8 @@ // XDrop void OTables::dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName) { - 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) { Reference< XConnection > xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection(); @@ -205,7 +199,7 @@ ::rtl::OUString aSql = ::rtl::OUString::createFromAscii("DROP "); - Reference<XPropertySet> xProp(xTunnel,UNO_QUERY); + Reference<XPropertySet> xProp(xObject,UNO_QUERY); sal_Bool bIsView; if(bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == ::rtl::OUString::createFromAscii("VIEW"))) // here we have a view aSql += ::rtl::OUString::createFromAscii("VIEW "); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
