summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/docshel4.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/docshell/docshel4.cxx')
-rw-r--r--sd/source/ui/docshell/docshel4.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx
index d6f7ec0127ec..288e0b15c9df 100644
--- a/sd/source/ui/docshell/docshel4.cxx
+++ b/sd/source/ui/docshell/docshel4.cxx
@@ -725,9 +725,8 @@ SfxStyleSheetBasePool* DrawDocShell::GetStyleSheetPool()
void DrawDocShell::GotoBookmark(const OUString& rBookmark)
{
- if (mpViewShell && dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr)
+ if (auto pDrawViewShell = dynamic_cast<DrawViewShell *>( mpViewShell ))
{
- DrawViewShell* pDrawViewShell = static_cast<DrawViewShell*>(mpViewShell);
ViewShellBase& rBase (mpViewShell->GetViewShellBase());
bool bIsMasterPage = false;