summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/apphdl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app/apphdl.cxx')
-rw-r--r--sw/source/uibase/app/apphdl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index d4bcf37d4fca..3074d96f7bab 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -964,10 +964,10 @@ void SwModule::ConfigurationChanged( utl::ConfigurationBroadcaster* pBrdCst, Con
{
if(bAccessibility)
{
- if(dynamic_cast< const SwView *>( pViewShell ) != nullptr)
- static_cast<SwView*>(pViewShell)->ApplyAccessibilityOptions(*m_pAccessibilityOptions);
- else if(dynamic_cast< const SwPagePreview *>( pViewShell ) != nullptr)
- static_cast<SwPagePreview*>(pViewShell)->ApplyAccessibilityOptions(*m_pAccessibilityOptions);
+ if(auto pSwView = dynamic_cast<SwView *>( pViewShell ))
+ pSwView->ApplyAccessibilityOptions(*m_pAccessibilityOptions);
+ else if(auto pPagePreview = dynamic_cast<SwPagePreview *>( pViewShell ))
+ pPagePreview->ApplyAccessibilityOptions(*m_pAccessibilityOptions);
}
pViewShell->GetWindow()->Invalidate();
}