User: hr      
Date: 06/06/19 18:54:11

Modified:
 /dba/connectivity/source/drivers/mysql/
  YViews.cxx

Log:
 INTEGRATION: CWS warnings01 (1.6.30); FILE MERGED
 2005/11/16 12:59:18 fs 1.6.30.2: #i57457# warning free code
 2005/11/07 14:44:00 fs 1.6.30.1: #i57457# warning-free code

File Changes:

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

File [changed]: YViews.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysql/YViews.cxx?r1=1.6&r2=1.7
Delta lines:  +9 -15
--------------------
--- YViews.cxx  8 Sep 2005 06:32:45 -0000       1.6
+++ YViews.cxx  20 Jun 2006 01:54:08 -0000      1.7
@@ -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<OMySQLCatalog&>(m_rParent).getConnection();




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

Reply via email to