diff options
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r-- | sc/source/ui/app/drwtrans.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/app/scdll.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/app/drwtrans.cxx b/sc/source/ui/app/drwtrans.cxx index 0910bd124ba6..b1b3c204e522 100644 --- a/sc/source/ui/app/drwtrans.cxx +++ b/sc/source/ui/app/drwtrans.cxx @@ -460,7 +460,7 @@ bool ScDrawTransferObj::WriteObject( SotStorageStreamRef& rxOStm, void* pUserObj { case SCDRAWTRANS_TYPE_DRAWMODEL: { - SdrModel* pDrawModel = (SdrModel*)pUserObject; + SdrModel* pDrawModel = static_cast<SdrModel*>(pUserObject); rxOStm->SetBufferSize( 0xff00 ); // #108584# @@ -502,7 +502,7 @@ bool ScDrawTransferObj::WriteObject( SotStorageStreamRef& rxOStm, void* pUserObj case SCDRAWTRANS_TYPE_EMBOBJ: { // impl. for "single OLE" - embed::XEmbeddedObject* pEmbObj = (embed::XEmbeddedObject*) pUserObject; + embed::XEmbeddedObject* pEmbObj = static_cast<embed::XEmbeddedObject*>(pUserObject); ::utl::TempFile aTempFile; aTempFile.EnableKillingFile(); @@ -546,7 +546,7 @@ bool ScDrawTransferObj::WriteObject( SotStorageStreamRef& rxOStm, void* pUserObj case SCDRAWTRANS_TYPE_DOCUMENT: { // impl. for "DocShell" - SfxObjectShell* pEmbObj = (SfxObjectShell*) pUserObject; + SfxObjectShell* pEmbObj = static_cast<SfxObjectShell*>(pUserObject); try { diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx index 52a98d4b12a5..40765e0d25bd 100644 --- a/sc/source/ui/app/scdll.cxx +++ b/sc/source/ui/app/scdll.cxx @@ -114,7 +114,7 @@ ScResId::ScResId( sal_uInt16 nId ) : void ScDLL::Init() { - ScModule **ppShlPtr = (ScModule**) GetAppData(SHL_CALC); + ScModule **ppShlPtr = reinterpret_cast<ScModule**>(GetAppData(SHL_CALC)); if ( *ppShlPtr ) return; diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index 4b452c8ff89f..95c4d22d3cb0 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -398,7 +398,7 @@ bool ScTransferObj::WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, { case SCTRANS_TYPE_IMPEX: { - ScImportExport* pImpEx = (ScImportExport*)pUserObject; + ScImportExport* pImpEx = static_cast<ScImportExport*>(pUserObject); SotClipboardFormatId nFormat = SotExchange::GetFormat( rFlavor ); // mba: no BaseURL for data exchange @@ -410,7 +410,7 @@ bool ScTransferObj::WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, case SCTRANS_TYPE_EDIT_RTF: case SCTRANS_TYPE_EDIT_BIN: { - ScTabEditEngine* pEngine = (ScTabEditEngine*)pUserObject; + ScTabEditEngine* pEngine = static_cast<ScTabEditEngine*>(pUserObject); if ( nUserObjectId == SCTRANS_TYPE_EDIT_RTF ) { pEngine->Write( *rxOStm, EE_FORMAT_RTF ); @@ -438,7 +438,7 @@ bool ScTransferObj::WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, case SCTRANS_TYPE_EMBOBJ: { // TODO/MBA: testing - SfxObjectShell* pEmbObj = (SfxObjectShell*) pUserObject; + SfxObjectShell* pEmbObj = static_cast<SfxObjectShell*>(pUserObject); ::utl::TempFile aTempFile; aTempFile.EnableKillingFile(); uno::Reference< embed::XStorage > xWorkStore = |