diff options
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/appluno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 12 | ||||
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/dapiuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/datauno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/linkuno.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/unoobj/notesuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 24 | ||||
-rw-r--r-- | sc/source/ui/unoobj/shapeuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/viewuno.cxx | 4 |
11 files changed, 30 insertions, 30 deletions
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx index eb82931e80e1..14959c292c80 100644 --- a/sc/source/ui/unoobj/appluno.cxx +++ b/sc/source/ui/unoobj/appluno.cxx @@ -185,7 +185,7 @@ uno::Reference<uno::XInterface> SAL_CALL ScSpreadsheetSettings_CreateInstance( { SolarMutexGuard aGuard; ScDLL::Init(); - return (cppu::OWeakObject*)new ScSpreadsheetSettings(); + return static_cast<cppu::OWeakObject*>(new ScSpreadsheetSettings()); } OUString ScSpreadsheetSettings::getImplementationName_Static() diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index d25986bde0c4..247c7e19957c 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -1637,7 +1637,7 @@ void ScCellRangesBase::Notify( SfxBroadcaster&, const SfxHint& rHint ) // SFX_HINT_DATACHANGED. lang::EventObject aEvent; - aEvent.Source.set((cppu::OWeakObject*)this); + aEvent.Source.set(static_cast<cppu::OWeakObject*>(this)); // the EventObject holds a Ref to this object until after the listener calls @@ -3994,7 +3994,7 @@ uno::Reference<uno::XInterface> ScCellRangesBase::Find_Impl( if (bFound) { ScAddress aFoundPos( nCol, nRow, nTab ); - xRet.set((cppu::OWeakObject*) new ScCellObj( pDocShell, aFoundPos )); + xRet.set(static_cast<cppu::OWeakObject*>(new ScCellObj( pDocShell, aFoundPos ))); } } } @@ -5109,7 +5109,7 @@ void ScCellRangeObj::SetArrayFormula_Impl(const OUString& rFormula, { if ( !rFormula.isEmpty() ) { - if ( ScTableSheetObj::getImplementation( (cppu::OWeakObject*)this ) ) + if ( ScTableSheetObj::getImplementation( static_cast<cppu::OWeakObject*>(this) ) ) { // don't set array formula for sheet object throw uno::RuntimeException(); @@ -5182,7 +5182,7 @@ void SAL_CALL ScCellRangeObj::setArrayTokens( const uno::Sequence<sheet::Formula { if ( rTokens.getLength() ) { - if ( ScTableSheetObj::getImplementation( (cppu::OWeakObject*)this ) ) + if ( ScTableSheetObj::getImplementation( static_cast<cppu::OWeakObject*>(this) ) ) { throw uno::RuntimeException(); } @@ -5214,7 +5214,7 @@ uno::Sequence< uno::Sequence<uno::Any> > SAL_CALL ScCellRangeObj::getDataArray() { SolarMutexGuard aGuard; - if ( ScTableSheetObj::getImplementation( (cppu::OWeakObject*)this ) ) + if ( ScTableSheetObj::getImplementation( static_cast<cppu::OWeakObject*>(this) ) ) { // don't create a data array for the sheet throw uno::RuntimeException(); @@ -5261,7 +5261,7 @@ uno::Sequence< uno::Sequence<OUString> > SAL_CALL ScCellRangeObj::getFormulaArra { SolarMutexGuard aGuard; - if ( ScTableSheetObj::getImplementation( (cppu::OWeakObject*)this ) ) + if ( ScTableSheetObj::getImplementation( static_cast<cppu::OWeakObject*>(this) ) ) { // don't create a data array for the sheet throw uno::RuntimeException(); diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 903d10a85db1..d98cea5b3c18 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -2853,7 +2853,7 @@ void ScChart2DataSequence::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint { m_aDataArray.clear(); lang::EventObject aEvent; - aEvent.Source.set((cppu::OWeakObject*)this); + aEvent.Source.set(static_cast<cppu::OWeakObject*>(this)); if( m_pDocument ) { diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index 22719a585c3c..44cb4d0bb51d 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -1371,7 +1371,7 @@ void ScDataPilotTableObj::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) void ScDataPilotTableObj::Refreshed_Impl() { lang::EventObject aEvent; - aEvent.Source.set((cppu::OWeakObject*)this); + aEvent.Source.set(static_cast<cppu::OWeakObject*>(this)); // the EventObject holds a Ref to this object until after the listener calls diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index 32941b01b38b..0b826ff680c8 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -1963,7 +1963,7 @@ void SAL_CALL ScDatabaseRangeObj::removeRefreshListener( void ScDatabaseRangeObj::Refreshed_Impl() { lang::EventObject aEvent; - aEvent.Source = (cppu::OWeakObject*)this; + aEvent.Source = static_cast<cppu::OWeakObject*>(this); for ( size_t n=0; n<aRefreshListeners.size(); n++ ) aRefreshListeners[n]->refreshed( aEvent ); } diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 87d967155cb9..2ee2f0f392b5 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -407,7 +407,7 @@ uno::Reference< uno::XAggregation> ScModelObj::GetFormatter() xFormatter = NULL; if (xNumberAgg.is()) - xNumberAgg->setDelegator( (cppu::OWeakObject*)this ); + xNumberAgg->setDelegator( static_cast<cppu::OWeakObject*>(this) ); osl_atomic_decrement( &m_refCount ); } // if ( !xNumberAgg.is() ) return xNumberAgg; diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx index 13772e37070e..f3f2c70c9be6 100644 --- a/sc/source/ui/unoobj/linkuno.cxx +++ b/sc/source/ui/unoobj/linkuno.cxx @@ -188,7 +188,7 @@ void SAL_CALL ScSheetLinkObj::removeRefreshListener( void ScSheetLinkObj::Refreshed_Impl() { lang::EventObject aEvent; - aEvent.Source.set((cppu::OWeakObject*)this); + aEvent.Source.set(static_cast<cppu::OWeakObject*>(this)); for ( size_t n=0; n<aRefreshListeners.size(); n++ ) aRefreshListeners[n]->refreshed( aEvent ); } @@ -741,7 +741,7 @@ void SAL_CALL ScAreaLinkObj::removeRefreshListener( void ScAreaLinkObj::Refreshed_Impl() { lang::EventObject aEvent; - aEvent.Source.set((cppu::OWeakObject*)this); + aEvent.Source.set(static_cast<cppu::OWeakObject*>(this)); for ( size_t n=0; n<aRefreshListeners.size(); n++ ) aRefreshListeners[n]->refreshed( aEvent ); } @@ -1241,7 +1241,7 @@ void ScDDELinkObj::setResults( const uno::Sequence< uno::Sequence< uno::Any > >& void ScDDELinkObj::Refreshed_Impl() { lang::EventObject aEvent; - aEvent.Source.set((cppu::OWeakObject*)this); + aEvent.Source.set(static_cast<cppu::OWeakObject*>(this)); for ( size_t n=0; n<aRefreshListeners.size(); n++ ) aRefreshListeners[n]->refreshed( aEvent ); } diff --git a/sc/source/ui/unoobj/notesuno.cxx b/sc/source/ui/unoobj/notesuno.cxx index e74c770a3564..80b67b4d4056 100644 --- a/sc/source/ui/unoobj/notesuno.cxx +++ b/sc/source/ui/unoobj/notesuno.cxx @@ -102,7 +102,7 @@ uno::Reference<uno::XInterface> SAL_CALL ScAnnotationObj::getParent() throw(uno: //! existierendes Objekt finden und zurueckgeben ??? if (pDocShell) - return (cppu::OWeakObject*)new ScCellObj( pDocShell, aCellPos ); + return static_cast<cppu::OWeakObject*>(new ScCellObj( pDocShell, aCellPos )); return NULL; } diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index 4d2581f8d7c3..68913f657749 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -434,7 +434,7 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( { case SC_SERVICE_SHEET: // noch nicht eingefuegt - DocShell=Null - xRet.set((sheet::XSpreadsheet*)new ScTableSheetObj(NULL,0)); + xRet.set(static_cast<sheet::XSpreadsheet*>(new ScTableSheetObj(NULL,0))); break; case SC_SERVICE_URLFIELD: case SC_SERVICE_PAGEFIELD: @@ -452,28 +452,28 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( } break; case SC_SERVICE_CELLSTYLE: - xRet.set((style::XStyle*)new ScStyleObj( NULL, SFX_STYLE_FAMILY_PARA, OUString() )); + xRet.set(static_cast<style::XStyle*>(new ScStyleObj( NULL, SFX_STYLE_FAMILY_PARA, OUString() ))); break; case SC_SERVICE_PAGESTYLE: - xRet.set((style::XStyle*)new ScStyleObj( NULL, SFX_STYLE_FAMILY_PAGE, OUString() )); + xRet.set(static_cast<style::XStyle*>(new ScStyleObj( NULL, SFX_STYLE_FAMILY_PAGE, OUString() ))); break; case SC_SERVICE_AUTOFORMAT: - xRet.set((container::XIndexAccess*)new ScAutoFormatObj( SC_AFMTOBJ_INVALID )); + xRet.set(static_cast<container::XIndexAccess*>(new ScAutoFormatObj( SC_AFMTOBJ_INVALID ))); break; case SC_SERVICE_CELLRANGES: // wird nicht eingefuegt, sondern gefuellt // -> DocShell muss gesetzt sein, aber leere Ranges if (pDocShell) - xRet.set((sheet::XSheetCellRanges*)new ScCellRangesObj( pDocShell, ScRangeList() )); + xRet.set(static_cast<sheet::XSheetCellRanges*>(new ScCellRangesObj( pDocShell, ScRangeList() ))); break; case SC_SERVICE_DOCDEFLTS: if (pDocShell) - xRet.set((beans::XPropertySet*)new ScDocDefaultsObj( pDocShell )); + xRet.set(static_cast<beans::XPropertySet*>(new ScDocDefaultsObj( pDocShell ))); break; case SC_SERVICE_DRAWDEFLTS: if (pDocShell) - xRet.set((beans::XPropertySet*)new ScDrawDefaultsObj( pDocShell )); + xRet.set(static_cast<beans::XPropertySet*>(new ScDrawDefaultsObj( pDocShell ))); break; // Drawing layer tables are not in SvxUnoDrawMSFactory, @@ -512,7 +512,7 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( case SC_SERVICE_SHEETDOCSET: case SC_SERVICE_DOCCONF: if (pDocShell) - xRet.set((beans::XPropertySet*)new ScDocumentConfiguration(pDocShell)); + xRet.set(static_cast<beans::XPropertySet*>(new ScDocumentConfiguration(pDocShell))); break; case SC_SERVICE_IMAP_RECT: @@ -527,21 +527,21 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( // Support creation of GraphicObjectResolver and EmbeddedObjectResolver case SC_SERVICE_EXPORT_GOR: - xRet.set((::cppu::OWeakObject * )new SvXMLGraphicHelper( GRAPHICHELPER_MODE_WRITE )); + xRet.set(static_cast<cppu::OWeakObject *>(new SvXMLGraphicHelper( GRAPHICHELPER_MODE_WRITE ))); break; case SC_SERVICE_IMPORT_GOR: - xRet.set((::cppu::OWeakObject * )new SvXMLGraphicHelper( GRAPHICHELPER_MODE_READ )); + xRet.set(static_cast<cppu::OWeakObject *>(new SvXMLGraphicHelper( GRAPHICHELPER_MODE_READ ))); break; case SC_SERVICE_EXPORT_EOR: if (pDocShell) - xRet.set((::cppu::OWeakObject * )new SvXMLEmbeddedObjectHelper( *pDocShell, EMBEDDEDOBJECTHELPER_MODE_WRITE )); + xRet.set(static_cast<cppu::OWeakObject *>(new SvXMLEmbeddedObjectHelper( *pDocShell, EMBEDDEDOBJECTHELPER_MODE_WRITE ))); break; case SC_SERVICE_IMPORT_EOR: if (pDocShell) - xRet.set((::cppu::OWeakObject * )new SvXMLEmbeddedObjectHelper( *pDocShell, EMBEDDEDOBJECTHELPER_MODE_READ )); + xRet.set(static_cast<cppu::OWeakObject *>(new SvXMLEmbeddedObjectHelper( *pDocShell, EMBEDDEDOBJECTHELPER_MODE_READ ))); break; case SC_SERVICE_VALBIND: diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx index 0b35f4c361d3..57dfd482024c 100644 --- a/sc/source/ui/unoobj/shapeuno.cxx +++ b/sc/source/ui/unoobj/shapeuno.cxx @@ -107,7 +107,7 @@ ScShapeObj::ScShapeObj( uno::Reference<drawing::XShape>& xShape ) : { xShape = NULL; // during setDelegator, mxShapeAgg must be the only ref - mxShapeAgg->setDelegator( (cppu::OWeakObject*)this ); + mxShapeAgg->setDelegator( static_cast<cppu::OWeakObject*>(this) ); xShape.set(uno::Reference<drawing::XShape>( mxShapeAgg, uno::UNO_QUERY )); diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index 45e062197488..6edee14ed8c4 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -1335,7 +1335,7 @@ bool ScTabViewObj::MouseReleased( const awt::MouseEvent& e ) void ScTabViewObj::EndMouseListening() { lang::EventObject aEvent; - aEvent.Source = (cppu::OWeakObject*)this; + aEvent.Source = static_cast<cppu::OWeakObject*>(this); for (const XMouseClickHandlerUnoRef rListener : aMouseClickHandlers) { try @@ -1352,7 +1352,7 @@ void ScTabViewObj::EndMouseListening() void ScTabViewObj::EndActivationListening() { lang::EventObject aEvent; - aEvent.Source = (cppu::OWeakObject*)this; + aEvent.Source = static_cast<cppu::OWeakObject*>(this); for (const XActivationEventListenerUnoRef rListener : aActivationListeners) { try |