diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/style.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index 5651b8bb780c..6a8b25576fb6 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -914,11 +914,7 @@ SfxUnoStyleSheet* SfxUnoStyleSheet::getUnoStyleSheet( const css::uno::Reference< { SfxUnoStyleSheet* pRet = dynamic_cast< SfxUnoStyleSheet* >( xStyle.get() ); if( !pRet ) - { - css::uno::Reference< css::lang::XUnoTunnel > xUT( xStyle, css::uno::UNO_QUERY ); - if( xUT.is() ) - pRet = reinterpret_cast<SfxUnoStyleSheet*>(sal::static_int_cast<sal_uIntPtr>(xUT->getSomething( SfxUnoStyleSheet::getUnoTunnelId()))); - } + pRet = comphelper::getUnoTunnelImplementation<SfxUnoStyleSheet>(xStyle); return pRet; } |