summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-01 10:18:03 +0200
committerNoel Grandin <noel@peralex.com>2014-12-02 09:32:10 +0200
commitcf16234a23a716fe98adf32dd5b56d48be242c99 (patch)
tree71bde1012375f19303809d233f02c00274854559 /sw/source/uibase/uno
parentaeb6c0ed64a76c722158bf91313b42561cd66071 (diff)
loplugin: cstylecast
Change-Id: If31b41296a91c6a6ac990494e88ab7b47240a823
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r--sw/source/uibase/uno/unomailmerge.cxx2
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx6
-rw-r--r--sw/source/uibase/uno/unotxvw.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/uno/unomailmerge.cxx b/sw/source/uibase/uno/unomailmerge.cxx
index 4687312d9a7b..39627971b482 100644
--- a/sw/source/uibase/uno/unomailmerge.cxx
+++ b/sw/source/uibase/uno/unomailmerge.cxx
@@ -387,7 +387,7 @@ SwXMailMerge::SwXMailMerge() :
xDocSh = new SwDocShell( SFX_CREATE_MODE_STANDARD );
xDocSh->DoInitNew( 0 );
SfxViewFrame *pFrame = SfxViewFrame::LoadHiddenDocument( *xDocSh, 0 );
- SwView *pView = (SwView*) pFrame->GetViewShell();
+ SwView *pView = static_cast<SwView*>( pFrame->GetViewShell() );
pView->AttrChangedNotify( &pView->GetWrtShell() ); //So that SelectShell is called.
xModel = xDocSh->GetModel();
}
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index e6a5f9b6b9b2..551f76750bf1 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -535,10 +535,10 @@ Reference< XInterface > SwXTextDocument::getCurrentSelection() throw( RuntimeEx
{
const TypeId aTypeId = TYPE(SwView);
- SwView* pView = (SwView*)SfxViewShell::GetFirst(&aTypeId);
+ SwView* pView = static_cast<SwView*>(SfxViewShell::GetFirst(&aTypeId));
while(pView && pView->GetObjectShell() != pDocShell)
{
- pView = (SwView*)SfxViewShell::GetNext(*pView, &aTypeId);
+ pView = static_cast<SwView*>(SfxViewShell::GetNext(*pView, &aTypeId));
}
if(pView)
{
@@ -707,7 +707,7 @@ SwUnoCrsr* SwXTextDocument::CreateCursorForSearch(Reference< XTextCursor > & xC
{
getText();
XText *const pText = xBodyText.get();
- SwXBodyText* pBText = (SwXBodyText*)pText;
+ SwXBodyText* pBText = static_cast<SwXBodyText*>(pText);
SwXTextCursor *const pXTextCursor = pBText->CreateTextCursor(true);
xCrsr.set( static_cast<text::XWordCursor*>(pXTextCursor) );
diff --git a/sw/source/uibase/uno/unotxvw.cxx b/sw/source/uibase/uno/unotxvw.cxx
index 2379cb273602..91bbfadc6b67 100644
--- a/sw/source/uibase/uno/unotxvw.cxx
+++ b/sw/source/uibase/uno/unotxvw.cxx
@@ -655,7 +655,7 @@ SfxObjectShellLock SwXTextView::BuildTmpSelectionDoc()
pTempDoc->SetClipBoard(true);
rOldSh.FillPrtDoc(pTempDoc, pPrt);
SfxViewFrame* pDocFrame = SfxViewFrame::LoadHiddenDocument( *xDocSh, 0 );
- SwView* pDocView = (SwView*) pDocFrame->GetViewShell();
+ SwView* pDocView = static_cast<SwView*>( pDocFrame->GetViewShell() );
pDocView->AttrChangedNotify( &pDocView->GetWrtShell() );//So that SelectShell is called.
SwWrtShell* pSh = pDocView->GetWrtShellPtr();