diff options
Diffstat (limited to 'sw/source/uibase/app/apphdl.cxx')
-rw-r--r-- | sw/source/uibase/app/apphdl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index e3fd77c077ff..467112e58956 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -974,9 +974,9 @@ void SwModule::ConfigurationChanged( utl::ConfigurationBroadcaster* pBrdCst, Con const SfxObjectShell* pObjSh = SfxObjectShell::GetFirst(); while( pObjSh ) { - if( dynamic_cast<const SwDocShell*>(pObjSh) != nullptr ) + if( auto pDocShell = dynamic_cast<const SwDocShell*>(pObjSh) ) { - SwDoc* pDoc = const_cast<SwDocShell*>(static_cast<const SwDocShell*>(pObjSh))->GetDoc(); + SwDoc* pDoc = const_cast<SwDocShell*>(pDocShell)->GetDoc(); SwViewShell* pVSh = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell(); if ( pVSh ) pVSh->ChgNumberDigits(); |