svl/source/items/style.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 6b9c51aee8a42e597efe78257ab051bf108c0128 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jul 1 12:28:19 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Jul 4 19:24:50 2022 +0200 dodgy use of dynamic_cast on an UNO object rather just stick to using getFromUnoTunnel ever since commit 5420fbd0d722754e4e01e48d661f0ee082caef56 Date: Wed Mar 12 12:09:03 2008 +0000 INTEGRATION: CWS impresstables2 (1.16.30); FILE MERGED 2008/ Change-Id: I0ac7690ed779407c77c29fa319402e70427e184c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136801 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index 0179635f7493..dfa2ada7e88c 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -886,10 +886,7 @@ SfxUnoStyleSheet::SfxUnoStyleSheet( const OUString& _rName, const SfxStyleSheetB SfxUnoStyleSheet* SfxUnoStyleSheet::getUnoStyleSheet( const css::uno::Reference< css::style::XStyle >& xStyle ) { - SfxUnoStyleSheet* pRet = dynamic_cast< SfxUnoStyleSheet* >( xStyle.get() ); - if( !pRet ) - pRet = comphelper::getFromUnoTunnel<SfxUnoStyleSheet>(xStyle); - return pRet; + return comphelper::getFromUnoTunnel<SfxUnoStyleSheet>(xStyle); } /**