User: hr      
Date: 06/06/19 18:30:44

Modified:
 /dba/connectivity/source/drivers/hsqldb/
  HTables.cxx

Log:
 INTEGRATION: CWS warnings01 (1.4.30); FILE MERGED
 2005/11/07 14:43:38 fs 1.4.30.1: #i57457# warning-free code

File Changes:

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

File [changed]: HTables.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/hsqldb/HTables.cxx?r1=1.4&r2=1.5
Delta lines:  +5 -11
--------------------
--- HTables.cxx 8 Sep 2005 06:04:35 -0000       1.4
+++ HTables.cxx 20 Jun 2006 01:30:42 -0000      1.5
@@ -170,14 +170,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<OHCatalog&>(m_rParent).getConnection();
@@ -188,7 +182,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]

Reply via email to