From 8aaa1778bb7b65b6e498c26fb03fd8757a3329ae Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 20 Jan 2023 10:49:33 +0200 Subject: XUnoTunnel->dynamic_cast in SwXDispatchProviderInterceptor just store the underlying type, elides the need for dynamic_cast Change-Id: I974bf72f71a37b8dae25750c8f29648bb67adc09 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145927 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/uiview/uivwimp.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sw/source/uibase/uiview/uivwimp.cxx') diff --git a/sw/source/uibase/uiview/uivwimp.cxx b/sw/source/uibase/uiview/uivwimp.cxx index ee9693bd8c3b..f5dc49330f83 100644 --- a/sw/source/uibase/uiview/uivwimp.cxx +++ b/sw/source/uibase/uiview/uivwimp.cxx @@ -61,9 +61,8 @@ SwView_Impl::SwView_Impl(SwView* pShell) SwView_Impl::~SwView_Impl() { - auto pInterceptor = comphelper::getFromUnoTunnel(m_xDispatchProviderInterceptor); - if(pInterceptor) - pInterceptor->Invalidate(); + if(m_xDispatchProviderInterceptor) + m_xDispatchProviderInterceptor->Invalidate(); view::XSelectionSupplier* pTextView = mxXTextView.get(); static_cast(pTextView)->Invalidate(); mxXTextView.clear(); -- cgit