summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/srcview.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-24 10:40:18 +0200
committerNoel Grandin <noel@peralex.com>2014-11-25 10:09:53 +0200
commit9409b2eb454118eab93542d4dfb464b723b219e2 (patch)
treeb143ccfb63af30b3e47637e096d03261f2586065 /sw/source/uibase/uiview/srcview.cxx
parent88aaa3496161339d504876a2e84dc03e4d6191d9 (diff)
loplugin: cstylecast
Change-Id: I030208a86a60609b0379c00957538677fac15ccf
Diffstat (limited to 'sw/source/uibase/uiview/srcview.cxx')
-rw-r--r--sw/source/uibase/uiview/srcview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx
index 2a4c45522123..15e7c05a3ed6 100644
--- a/sw/source/uibase/uiview/srcview.cxx
+++ b/sw/source/uibase/uiview/srcview.cxx
@@ -232,7 +232,7 @@ SwSrcView::~SwSrcView()
SwDocShell* pDocShell = GetDocShell();
OSL_ENSURE(PTR_CAST(SwWebDocShell, pDocShell), "Why no WebDocShell?");
const TextSelection& rSel = aEditWin.GetTextView()->GetSelection();
- ((SwWebDocShell*)pDocShell)->SetSourcePara( static_cast< sal_uInt16 >( rSel.GetStart().GetPara() ) );
+ static_cast<SwWebDocShell*>(pDocShell)->SetSourcePara( static_cast< sal_uInt16 >( rSel.GetStart().GetPara() ) );
uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
pDocShell->GetModel(), uno::UNO_QUERY_THROW);
@@ -871,7 +871,7 @@ void SwSrcView::Load(SwDocShell* pDocShell)
// Disable AutoLoad
pDocShell->SetAutoLoad(INetURLObject(), 0, false);
OSL_ENSURE(PTR_CAST(SwWebDocShell, pDocShell), "Why no WebDocShell?");
- sal_uInt16 nLine = ((SwWebDocShell*)pDocShell)->GetSourcePara();
+ sal_uInt16 nLine = static_cast<SwWebDocShell*>(pDocShell)->GetSourcePara();
aEditWin.SetStartLine(nLine);
aEditWin.GetTextEngine()->ResetUndo();
aEditWin.GetOutWin()->GrabFocus();