diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-20 10:49:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-22 06:50:35 +0000 |
commit | 8aaa1778bb7b65b6e498c26fb03fd8757a3329ae (patch) | |
tree | 449550a9d173c66041db0b2c27069906b2faa339 /sw/source/uibase/uiview/uivwimp.cxx | |
parent | ebf6bf0e32d3b937be2d950591d3abffde135b14 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uiview/uivwimp.cxx')
-rw-r--r-- | sw/source/uibase/uiview/uivwimp.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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<SwXDispatchProviderInterceptor>(m_xDispatchProviderInterceptor); - if(pInterceptor) - pInterceptor->Invalidate(); + if(m_xDispatchProviderInterceptor) + m_xDispatchProviderInterceptor->Invalidate(); view::XSelectionSupplier* pTextView = mxXTextView.get(); static_cast<SwXTextView*>(pTextView)->Invalidate(); mxXTextView.clear(); |