diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:44 +0200 |
commit | 77e6854ab3650a6cf6ee7edda7f6c61314cb106d (patch) | |
tree | 10d04eb8c3821249cd554886c942090a9026ba34 /sfx2 | |
parent | f9e73fe26b3319c851e8d54dac0dbb2acc65f847 (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I07aa70401391a4479d09907aa7e78a4fea894879
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/module.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/menu/mnumgr.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewprn.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 150563429e07..d822e0043590 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -161,7 +161,7 @@ void SfxModule::Construct_Impl() { SfxApplication *pApp = SfxGetpApp(); SfxModuleArr_Impl& rArr = GetModules_Impl(); - SfxModule* pPtr = (SfxModule*)this; + SfxModule* pPtr = this; rArr.push_back( pPtr ); pImpl = new SfxModule_Impl; pImpl->pSlotPool = new SfxSlotPool(&pApp->GetAppSlotPool_Impl()); diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 373c2935dd27..ea8fe4dd369a 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -989,9 +989,9 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const OUString &rStr) bool bSelect = ! rStr.isEmpty(); if ( bSelect ) { - SvTreeListEntry* pEntry = (SvTreeListEntry*)aFmtLb->FirstVisible(); + SvTreeListEntry* pEntry = aFmtLb->FirstVisible(); while ( pEntry && aFmtLb->GetEntryText( pEntry ) != rStr ) - pEntry = (SvTreeListEntry*)aFmtLb->NextVisible( pEntry ); + pEntry = aFmtLb->NextVisible( pEntry ); if ( !pEntry ) bSelect = false; else diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 3711c68b7130..f4ba28b17d79 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -511,7 +511,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) pDocInfoItem->GetCmisProperties( ); if ( aNewCmisProperties.getLength( ) > 0 ) xCmisDoc->updateCmisProperties( aNewCmisProperties ); - SetUseUserData( ((const SfxDocumentInfoItem *)pDocInfoItem)->IsUseUserData() ); + SetUseUserData( pDocInfoItem->IsUseUserData() ); // add data from dialog for possible recording purpose rReq.AppendItem( SfxDocumentInfoItem( GetTitle(), getDocProperties(), aNewCmisProperties, IsUseUserData() ) ); diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx index 3cf67fe6b7bc..6281e137b54d 100644 --- a/sfx2/source/menu/mnumgr.cxx +++ b/sfx2/source/menu/mnumgr.cxx @@ -388,7 +388,7 @@ void SfxPopupMenuManager::ExecutePopup( const ResId& rResId, SfxViewFrame* pFram Menu* SfxPopupMenuManager::GetSVMenu() { - return (Menu*) GetMenu()->GetSVMenu(); + return GetMenu()->GetSVMenu(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 124a1f676897..bc40e9d85571 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1185,7 +1185,7 @@ void SfxViewFrame::InvalidateBorderImpl( const SfxViewShell* pSh ) return; } - DoAdjustPosSizePixel( (SfxViewShell *) GetViewShell(), Point(), + DoAdjustPosSizePixel( GetViewShell(), Point(), GetWindow().GetOutputSizePixel() ); } } diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index 5bfcbc3bc704..5655d61b7a50 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -770,7 +770,7 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) if ( pPrinterItem ) { // use PrinterName parameter to create a printer - pPrinter = VclPtr<SfxPrinter>::Create( pDocPrinter->GetOptions().Clone(), ((const SfxStringItem*) pPrinterItem)->GetValue() ); + pPrinter = VclPtr<SfxPrinter>::Create( pDocPrinter->GetOptions().Clone(), pPrinterItem->GetValue() ); // if printer is unknown, it can't be used - now printer from document will be used if ( !pPrinter->IsKnown() ) diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index cb7ab2e9fc2e..431ba976591c 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -960,7 +960,7 @@ SfxInPlaceClient* SfxViewShell::FindIPClient pObjParentWin = GetWindow(); for ( size_t n = 0; n < pClients->size(); n++) { - SfxInPlaceClient *pIPClient = (SfxInPlaceClient*) pClients->at( n ); + SfxInPlaceClient *pIPClient = pClients->at( n ); if ( pIPClient->GetObject() == xObj && pIPClient->GetEditWin() == pObjParentWin ) return pIPClient; } |