User: hr      
Date: 06/06/19 19:58:24

Modified:
 /dba/dbaccess/source/ui/browser/
  sbagrid.cxx

Log:
 INTEGRATION: CWS warnings01 (1.73.72); FILE MERGED
 2006/05/23 23:49:19 sb 1.73.72.2: RESYNC: (1.73-1.74); FILE MERGED
 2006/03/24 15:36:03 fs 1.73.72.1: #i57457# warning-free code (unxlngi6/.pro + 
unxsoli4.pro)

File Changes:

Directory: /dba/dbaccess/source/ui/browser/
===========================================

File [changed]: sbagrid.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/sbagrid.cxx?r1=1.74&r2=1.75
Delta lines:  +21 -20
---------------------
--- sbagrid.cxx 4 May 2006 08:39:58 -0000       1.74
+++ sbagrid.cxx 20 Jun 2006 02:58:21 -0000      1.75
@@ -121,6 +121,9 @@
 #ifndef _URLOBJ_HXX
 #include <tools/urlobj.hxx>
 #endif
+#ifndef TOOLS_DIAGNOSE_EX_H
+#include <tools/diagnose_ex.h>
+#endif
 
 #ifndef _SFXINTITEM_HXX
 #include <svtools/intitem.hxx>
@@ -661,7 +664,7 @@
 }
 
 
//---------------------------------------------------------------------------------------
-IMPL_LINK( SbaXGridPeer, OnDispatchEvent, void*, NOTINTERESTEDIN )
+IMPL_LINK( SbaXGridPeer, OnDispatchEvent, void*, /*NOTINTERESTEDIN*/ )
 {
        SbaGridControl* pGrid = static_cast< SbaGridControl* >( GetWindow() );
        if ( pGrid )    // if this fails, we were disposing before arriving here
@@ -787,6 +790,9 @@
                                pGrid->SetColWidth(nColId);
                        }
                        break;
+
+            case dtUnknown:
+                break;
                }
 
                // notify any status listeners that the dialog vanished
@@ -847,7 +853,7 @@
 sal_Int64 SAL_CALL SbaXGridPeer::getSomething( const Sequence< sal_Int8 > & 
rId ) throw(::com::sun::star::uno::RuntimeException)
 {
        if( rId.getLength() == 16 && 0 == rtl_compareMemory( 
getUnoTunnelId().getConstArray(),  rId.getConstArray(), 16 ) )
-               return (sal_Int64)this;
+               return reinterpret_cast< sal_Int64 >( this );
    
        return FmXGridPeer::getSomething(rId);
 }
@@ -1042,12 +1048,12 @@
 SbaGridControl::SbaGridControl(Reference< XMultiServiceFactory > _rM,
                                                           Window* pParent, 
FmXGridPeer* _pPeer, WinBits nBits)
        :FmGridControl(_rM,pParent, _pPeer, nBits)
-       ,m_nLastColId(-1)
-       ,m_nLastRowId(-1)
-       ,m_nCurrentActionColId(-1)
        ,m_pMasterListener(NULL)
-       ,m_bActivatingForDrop(sal_False)
        ,m_nAsyncDropEvent(0)
+       ,m_nLastColId((USHORT)-1)
+       ,m_nLastRowId(-1)
+       ,m_nCurrentActionColId((USHORT)-1)
+       ,m_bActivatingForDrop(sal_False)
 {
        DBG_CTOR(SbaGridControl ,NULL);
 }
@@ -1069,9 +1075,8 @@
 
//---------------------------------------------------------------------------------------
 CellController* SbaGridControl::GetController(long nRow, sal_uInt16 nCol)
 {
-       CellControllerRef aController;
-       if (m_bActivatingForDrop)
-               return &aController;
+       if ( m_bActivatingForDrop )
+               return NULL;
 
        return FmGridControl::GetController(nRow, nCol);
 }
@@ -1101,10 +1106,8 @@
 {
        Reference< ::com::sun::star::util::XNumberFormatsSupplier >  xSupplier 
= ::dbtools::getNumberFormats(::dbtools::getConnection(Reference< XRowSet > 
(getDataSource(),UNO_QUERY)), sal_True,getServiceManager());
 
-       Reference< XUnoTunnel > xTunnel(xSupplier,UNO_QUERY);
-       SvNumberFormatsSupplierObj* pSupplierImpl = 
(SvNumberFormatsSupplierObj*)xTunnel->getSomething(SvNumberFormatsSupplierObj::getUnoTunnelId());
-
-       if (!pSupplierImpl)
+       SvNumberFormatsSupplierObj* pSupplierImpl = 
SvNumberFormatsSupplierObj::getImplementation( xSupplier );
+       if ( !pSupplierImpl )
                return NULL;
 
        SvNumberFormatter* pFormatter = pSupplierImpl->GetNumberFormatter();
@@ -1624,7 +1627,6 @@
                                case SOT_FORMATSTR_ID_DBACCESS_QUERY:   // 
query descriptor
                                case SOT_FORMATSTR_ID_DBACCESS_COMMAND: // SQL 
command
                                        return true;
-                                       break;
                        }       
                        return false;
                }
@@ -1685,7 +1687,7 @@
                }
                catch (const Exception& e )
                {
-                       e; // make compiler happy
+                       (void)e; // make compiler happy
                        // assume RO
                        break;
                }
@@ -1710,8 +1712,7 @@
                }
                catch( const Exception& e )
                {
-                       e; // make compiler happy
-                       DBG_ERROR( "SbaGridControl::AcceptDrop: caught an 
exception!" );
+                       DBG_UNHANDLED_EXCEPTION();
                }
 
        } while (sal_False);
@@ -1836,7 +1837,7 @@
        return xReturn;
 }
 // 
-----------------------------------------------------------------------------
-IMPL_LINK(SbaGridControl, AsynchDropEvent, void*, EMPTY_ARG)
+IMPL_LINK(SbaGridControl, AsynchDropEvent, void*, /*EMPTY_ARG*/)
 {
        m_nAsyncDropEvent = 0;
 
@@ -1883,7 +1884,7 @@
        return 0L;
 }
 // -------------------------------------------------------------------------
-::rtl::OUString SbaGridControl::GetAccessibleDescription( 
::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition) const
+::rtl::OUString SbaGridControl::GetAccessibleObjectDescription( 
::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition) const
 {
        ::rtl::OUString sRet;
        if ( ::svt::BBTYPE_BROWSEBOX == eObjType )
@@ -1892,7 +1893,7 @@
                sRet = String(ModuleRes(STR_DATASOURCE_GRIDCONTROL_DESC));
        }
        else
-               sRet = FmGridControl::GetAccessibleDescription( 
eObjType,_nPosition);
+               sRet = FmGridControl::GetAccessibleObjectDescription( 
eObjType,_nPosition);
        return sRet; 
 }
 // 
-----------------------------------------------------------------------------




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

Reply via email to