diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-01 12:28:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-04 19:24:50 +0200 |
commit | 6b9c51aee8a42e597efe78257ab051bf108c0128 (patch) | |
tree | 260ee1fdffa8181c8056ce06b579a5caeeab5c6c /svl/source | |
parent | 6124dccb7bb20688f98f5517c2604f510dd6f4fb (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/items/style.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
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); } /** |