diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:51:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:51:13 +0200 |
commit | 80c2dfa225a3e082b0a7fdab95cfed3eef17d0c1 (patch) | |
tree | 4f09be4300e0c2a580516b62e8038244770e58d7 /sw/source/uibase | |
parent | 9672e6c81e1ded79ff964d0a0d667e4e172c4475 (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I0e42e757a6f7b0c28758193aad8b3cb01607b8b1
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/app/docsh2.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/app/docstyle.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/dbui/dbtree.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/frmsh.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/shells/textfld.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/utlui/glbltree.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/utlui/uitool.cxx | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx index cddd9ae40565..9b0f6cf242c7 100644 --- a/sw/source/uibase/app/docsh2.cxx +++ b/sw/source/uibase/app/docsh2.cxx @@ -161,7 +161,7 @@ void SwDocShell::ToggleBrowserMode(bool bSet, SwView* _pView ) { GetDoc()->getIDocumentSettingAccess().set(DocumentSettingId::BROWSE_MODE, bSet ); UpdateFontList(); - SwView* pTempView = _pView ? _pView : (SwView*)GetView(); + SwView* pTempView = _pView ? _pView : GetView(); if( pTempView ) { pTempView->GetViewFrame()->GetBindings().Invalidate(FN_SHADOWCURSOR); diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx index 2f5802cb1dc4..d3ac73ff47ac 100644 --- a/sw/source/uibase/app/docstyle.cxx +++ b/sw/source/uibase/app/docstyle.cxx @@ -128,7 +128,7 @@ static SwCharFmt* lcl_FindCharFmt( SwDoc& rDoc, RES_POOLCOLL_TEXT_BEGIN ] ) { // Standard-Character template - pFmt = (SwCharFmt*)rDoc.GetDfltCharFmt(); + pFmt = rDoc.GetDfltCharFmt(); } if( !pFmt && bCreate ) diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx index caa9df67cd97..2d893cb32aaa 100644 --- a/sw/source/uibase/dbui/dbtree.cxx +++ b/sw/source/uibase/dbui/dbtree.cxx @@ -261,7 +261,7 @@ void SwDBTreeList::ShowColumns(bool bShowCol) while (pEntry) { - pEntry = (SvTreeListEntry*)GetRootLevelParent( pEntry ); + pEntry = GetRootLevelParent( pEntry ); Collapse(pEntry); // zuklappen SvTreeListEntry* pChild; diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 42eb6f06a634..be9179a6fc34 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -437,7 +437,7 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName, if(1 == aFoundArr.size()) { TextBlockInfo_Impl* pData = &aFoundArr.front(); - pGlossary = (SwTextBlocks *)pGlossaries->GetGroupDoc(pData->sGroupName); + pGlossary = pGlossaries->GetGroupDoc(pData->sGroupName); nFound = pGlossary->GetIndex( aShortName ); } else @@ -460,7 +460,7 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName, if(LISTBOX_ENTRY_NOTFOUND != nRet) { TextBlockInfo_Impl* pData = &aFoundArr[nRet]; - pGlossary = (SwTextBlocks *)pGlossaries->GetGroupDoc(pData->sGroupName); + pGlossary = pGlossaries->GetGroupDoc(pData->sGroupName); nFound = pGlossary->GetIndex( aShortName ); } else diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 663395e6c63d..ed45693a154c 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -1340,7 +1340,7 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt) rSh.ToggleHeaderFooterEdit(); } - SfxObjectShell *pObjSh = (SfxObjectShell*)m_rView.GetViewFrame()->GetObjectShell(); + SfxObjectShell *pObjSh = m_rView.GetViewFrame()->GetObjectShell(); if ( m_bLockInput || (pObjSh && pObjSh->GetProgress()) ) // When the progress bar is active or a progress is // running on a document, no order is being taken diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index a486f9dfbf4d..e78ef356e430 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -534,7 +534,7 @@ void SwFrameShell::Execute(SfxRequest &rReq) const SwFmtChain &rChain = pCurrFlyFmt->GetChain(); //needs cast - no non-const method available SwFlyFrmFmt* pFlyFmt = - (SwFlyFrmFmt*)rChain.GetPrev(); + rChain.GetPrev(); if(pFlyFmt) { if (pFlyFmt->GetName() != sPrevName) @@ -568,7 +568,7 @@ void SwFrameShell::Execute(SfxRequest &rReq) const SwFmtChain &rChain = pCurrFlyFmt->GetChain(); //needs cast - no non-const method available SwFlyFrmFmt* pFlyFmt = - (SwFlyFrmFmt*)rChain.GetNext(); + rChain.GetNext(); if(pFlyFmt) { if (pFlyFmt->GetName() != sNextName) diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx index 150325fa4eb2..835191450907 100644 --- a/sw/source/uibase/shells/textfld.cxx +++ b/sw/source/uibase/shells/textfld.cxx @@ -855,7 +855,7 @@ void SwTextShell::InsertHyperlink(const SvxHyperlinkItem& rHlnkItem) IMPL_LINK( SwTextShell, RedlineNextHdl, AbstractSvxPostItDialog *, pBtn ) { SwWrtShell* pSh = GetShellPtr(); - AbstractSvxPostItDialog *pDlg = (AbstractSvxPostItDialog*)pBtn; + AbstractSvxPostItDialog *pDlg = pBtn; // Insert or change a comment. pSh->SetRedlineComment(pDlg->GetNote()); @@ -905,7 +905,7 @@ IMPL_LINK( SwTextShell, RedlineNextHdl, AbstractSvxPostItDialog *, pBtn ) IMPL_LINK( SwTextShell, RedlinePrevHdl, AbstractSvxPostItDialog *, pBtn ) { SwWrtShell* pSh = GetShellPtr(); - AbstractSvxPostItDialog *pDlg = (AbstractSvxPostItDialog*)pBtn; + AbstractSvxPostItDialog *pDlg = pBtn; // Insert or change a comment. pSh->SetRedlineComment(pDlg->GetNote()); diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index c86e8d19a228..01a4cb4d01dc 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3913,7 +3913,7 @@ void SwXLinkNameAccessWrapper::removeVetoableChangeListener( Reference< XNameAccess > SwXLinkNameAccessWrapper::getLinks() throw( RuntimeException, std::exception ) { - return (SwXLinkNameAccessWrapper*)this; + return this; } OUString SwXLinkNameAccessWrapper::getImplementationName() throw( RuntimeException, std::exception ) diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx index bf2b8fe79c55..f60f7fe4d345 100644 --- a/sw/source/uibase/utlui/glbltree.cxx +++ b/sw/source/uibase/utlui/glbltree.cxx @@ -197,7 +197,7 @@ void SwGlobalTree::dispose() sal_Int8 SwGlobalTree::ExecuteDrop( const ExecuteDropEvent& rEvt ) { sal_Int8 nRet = DND_ACTION_NONE; - SvTreeListEntry* pLast = (SvTreeListEntry*)LastVisible(); + SvTreeListEntry* pLast = LastVisible(); if(pEmphasisEntry) { ImplShowTargetEmphasis( Prev(pEmphasisEntry), false ); @@ -278,7 +278,7 @@ sal_Int8 SwGlobalTree::AcceptDrop( const AcceptDropEvent& rEvt ) //initiate scrolling GetDropTarget( rEvt.maPosPixel ); - SvTreeListEntry* pLast = (SvTreeListEntry*)LastVisible(); + SvTreeListEntry* pLast = LastVisible(); if( rEvt.mbLeaving ) { if( pEmphasisEntry ) @@ -1277,7 +1277,7 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* _pContent, const Sequen bool bMove = false; if ( !_pContent ) { - SvTreeListEntry* pLast = (SvTreeListEntry*)LastVisible(); + SvTreeListEntry* pLast = LastVisible(); _pContent = static_cast<SwGlblDocContent*>(pLast->GetUserData()); bMove = true; } diff --git a/sw/source/uibase/utlui/uitool.cxx b/sw/source/uibase/utlui/uitool.cxx index 9a134a4efefd..d7b30ac76096 100644 --- a/sw/source/uibase/utlui/uitool.cxx +++ b/sw/source/uibase/utlui/uitool.cxx @@ -420,7 +420,7 @@ void ItemSetToPageDesc( const SfxItemSet& rSet, SwPageDesc& rPageDesc ) pColl = rDoc.getIDocumentStylePoolAccess().GetTxtCollFromPool( nId ); else pColl = rDoc.MakeTxtFmtColl( rColl, - (SwTxtFmtColl*)rDoc.GetDfltTxtFmtColl() ); + rDoc.GetDfltTxtFmtColl() ); } if( pColl ) pColl->SetFmtAttr( SwRegisterItem ( true )); |