diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:39 +0200 |
commit | f9e73fe26b3319c851e8d54dac0dbb2acc65f847 (patch) | |
tree | 912e49d738a13358710b9aaaf347a9880b511f0d /sd/source/ui/unoidl | |
parent | 68ebb45c01eabbd1f6e67b70926093b8ccad43bd (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: Ia78ebb57f69c678ddc4ca2b42c82105fa528ff2b
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 68a617cb1ecd..f73d991de262 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1082,7 +1082,7 @@ css::uno::Reference<css::uno::XInterface> SdXImpressDocument::create( if (pShape) { xRet.clear(); - new SdXShape( pShape, (SdXImpressDocument*)this ); + new SdXShape( pShape, this ); xRet = xShape; xShape.clear(); } diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index e43f4e94134b..382d4ac1f362 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -1519,7 +1519,7 @@ Sequence< OUString > SAL_CALL SdGenericDrawPage::getSupportedServiceNames() Reference< container::XNameAccess > SAL_CALL SdGenericDrawPage::getLinks( ) throw(uno::RuntimeException, std::exception) { - return new SdPageLinkTargets( (SdGenericDrawPage*)this ); + return new SdPageLinkTargets( this ); } void SdGenericDrawPage::setBackground( const Any& ) throw(lang::IllegalArgumentException) @@ -2393,7 +2393,7 @@ void SAL_CALL SdDrawPage::setMasterPage( const Reference< drawing::XDrawPage >& SvxFmDrawPage::mpPage->SetSize( pSdPage->GetSize() ); SvxFmDrawPage::mpPage->SetOrientation( pSdPage->GetOrientation() ); - static_cast<SdPage*>(SvxFmDrawPage::mpPage)->SetLayoutName( ( (SdPage*)pSdPage )->GetLayoutName() ); + static_cast<SdPage*>(SvxFmDrawPage::mpPage)->SetLayoutName( pSdPage->GetLayoutName() ); // set notes master also SdPage* pNotesPage = GetModel()->GetDoc()->GetSdPage( (SvxFmDrawPage::mpPage->GetPageNum()-1)>>1, PK_NOTES ); @@ -2401,7 +2401,7 @@ void SAL_CALL SdDrawPage::setMasterPage( const Reference< drawing::XDrawPage >& pNotesPage->TRG_ClearMasterPage(); sal_uInt16 nNum = (SvxFmDrawPage::mpPage->TRG_GetMasterPage()).GetPageNum() + 1; pNotesPage->TRG_SetMasterPage(*SvxFmDrawPage::mpPage->GetModel()->GetMasterPage(nNum)); - pNotesPage->SetLayoutName( ( (SdPage*)pSdPage )->GetLayoutName() ); + pNotesPage->SetLayoutName( pSdPage->GetLayoutName() ); GetModel()->SetModified(); } @@ -2925,7 +2925,7 @@ void SdMasterPage::setBackground( const Any& rValue ) // if we find the background style, copy the set to the background SdDrawDocument* pDoc = static_cast<SdDrawDocument*>(SvxFmDrawPage::mpPage->GetModel()); - SfxStyleSheetBasePool* pSSPool = (SfxStyleSheetBasePool*)pDoc->GetStyleSheetPool(); + SfxStyleSheetBasePool* pSSPool = pDoc->GetStyleSheetPool(); if(pSSPool) { OUString aLayoutName( static_cast< SdPage* >( SvxFmDrawPage::mpPage )->GetLayoutName() ); @@ -2969,7 +2969,7 @@ void SdMasterPage::getBackground( Any& rValue ) throw() else { SdDrawDocument* pDoc = static_cast<SdDrawDocument*>(SvxFmDrawPage::mpPage->GetModel()); - SfxStyleSheetBasePool* pSSPool = (SfxStyleSheetBasePool*)pDoc->GetStyleSheetPool(); + SfxStyleSheetBasePool* pSSPool = pDoc->GetStyleSheetPool(); if(pSSPool) { OUString aLayoutName( static_cast< SdPage* >(SvxFmDrawPage::mpPage)->GetLayoutName() ); |