diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 00:54:08 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 00:54:08 +0000 |
commit | 2373e1ded115c6a6294f685bd85c79a0848df20e (patch) | |
tree | 078017432871616defaaf28f84267e8790ddbbae /connectivity/source/drivers/mysql | |
parent | 97e45968c4bec34b61cfd096bd454ba03fac5a16 (diff) |
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
Diffstat (limited to 'connectivity/source/drivers/mysql')
-rw-r--r-- | connectivity/source/drivers/mysql/YViews.cxx | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/connectivity/source/drivers/mysql/YViews.cxx b/connectivity/source/drivers/mysql/YViews.cxx index e4042ca820ec..a272669e2a64 100644 --- a/connectivity/source/drivers/mysql/YViews.cxx +++ b/connectivity/source/drivers/mysql/YViews.cxx @@ -4,9 +4,9 @@ * * $RCSfile: YViews.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2005-09-08 06:32:45 $ + * last change: $Author: hr $ $Date: 2006-06-20 01:54:08 $ * * 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<OMySQLCatalog&>(m_rParent).getConnection(); |