diff options
Diffstat (limited to 'sd/source/ui/func/fuprlout.cxx')
-rw-r--r-- | sd/source/ui/func/fuprlout.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx index 08b608717e63..8ee1a4899740 100644 --- a/sd/source/ui/func/fuprlout.cxx +++ b/sd/source/ui/func/fuprlout.cxx @@ -230,10 +230,9 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) { if (bOnMaster) { - if( dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr) + if( auto pDrawViewShell = dynamic_cast<DrawViewShell *>( mpViewShell )) { - ::sd::View* pView = - static_cast<DrawViewShell*>(mpViewShell)->GetView(); + ::sd::View* pView = pDrawViewShell->GetView(); for (auto pSelectedPage : aSelectedPages) { sal_uInt16 nPgNum = pSelectedPage->TRG_GetMasterPage().GetPageNum(); |