diff options
Diffstat (limited to 'sw/source/ui/dialog/docstdlg.cxx')
-rw-r--r-- | sw/source/ui/dialog/docstdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dialog/docstdlg.cxx b/sw/source/ui/dialog/docstdlg.cxx index d9760b6eb0ab..839bc69cce27 100644 --- a/sw/source/ui/dialog/docstdlg.cxx +++ b/sw/source/ui/dialog/docstdlg.cxx @@ -107,9 +107,9 @@ void SwDocStatPage::Update() SfxViewShell *pVSh = SfxViewShell::Current(); SwViewShell *pSh = 0; if ( pVSh->ISA(SwView) ) - pSh = ((SwView*)pVSh)->GetWrtShellPtr(); + pSh = static_cast<SwView*>(pVSh)->GetWrtShellPtr(); else if ( pVSh->ISA(SwPagePreview) ) - pSh = ((SwPagePreview*)pVSh)->GetViewShell(); + pSh = static_cast<SwPagePreview*>(pVSh)->GetViewShell(); OSL_ENSURE( pSh, "Shell not found" ); |