diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-13 10:19:16 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-13 10:19:46 +0200 |
commit | b52a7c4df461109e6b80c65b043135582dd4f01b (patch) | |
tree | 5c5a1538813cb0048fc0bd2a4deac11de2abaddc /sd/source/ui/app/sdxfer.cxx | |
parent | d1ec0bf64ce7c099f199e62f148187509c998d3a (diff) |
loplugin: cstylecast
Change-Id: I071962c646199c30e842b9ec7673473de237ee45
Diffstat (limited to 'sd/source/ui/app/sdxfer.cxx')
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index e967d188d3c4..43172099a9c8 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -225,7 +225,7 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj ) if( pData && pData->ISA( SvxURLField ) ) { - const SvxURLField* pURL = (SvxURLField*) pData; + const SvxURLField* pURL = static_cast<const SvxURLField*>(pData); // #i63399# This special code identifies TextFrames which have just an URL // as content and directly add this to the clipboard, probably to avoid adding @@ -279,7 +279,7 @@ void SdTransferable::CreateData() if( mpSourceDoc ) mpSourceDoc->CreatingDataObj(this); - mpSdDrawDocumentIntern = (SdDrawDocument*) mpSdView->GetMarkedObjModel(); + mpSdDrawDocumentIntern = static_cast<SdDrawDocument*>( mpSdView->GetMarkedObjModel() ); if( mpSourceDoc ) mpSourceDoc->CreatingDataObj(0); @@ -294,10 +294,10 @@ void SdTransferable::CreateData() // Use dimension of source page SdrPageView* pPgView = mpSdView->GetSdrPageView(); - SdPage* pOldPage = (SdPage*) pPgView->GetPage(); + SdPage* pOldPage = static_cast<SdPage*>( pPgView->GetPage() ); SdrModel* pOldModel = mpSdView->GetModel(); - SdStyleSheetPool* pOldStylePool = (SdStyleSheetPool*) pOldModel->GetStyleSheetPool(); - SdStyleSheetPool* pNewStylePool = (SdStyleSheetPool*) mpSdDrawDocumentIntern->GetStyleSheetPool(); + SdStyleSheetPool* pOldStylePool = static_cast<SdStyleSheetPool*>( pOldModel->GetStyleSheetPool() ); + SdStyleSheetPool* pNewStylePool = static_cast<SdStyleSheetPool*>( mpSdDrawDocumentIntern->GetStyleSheetPool() ); SdPage* pPage = mpSdDrawDocumentIntern->GetSdPage( 0, PK_STANDARD ); OUString aOldLayoutName( pOldPage->GetLayoutName() ); |