From 1d398fb983d8f8b53a78e7c47b588fc1f1e7f748 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sun, 22 Sep 2019 18:20:39 +0300 Subject: tdf#39593 use getUnoTunnelImplementation Change-Id: I78eb67913a568c610e38e5002f914773c4906dfd Reviewed-on: https://gerrit.libreoffice.org/79350 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov --- sfx2/source/control/thumbnailviewacc.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index afb49746f496..bc1b3b711592 100644 --- a/sfx2/source/control/thumbnailviewacc.cxx +++ b/sfx2/source/control/thumbnailviewacc.cxx @@ -86,8 +86,7 @@ ThumbnailViewAcc* ThumbnailViewAcc::getImplementation( const uno::Reference< uno { try { - uno::Reference< lang::XUnoTunnel > xUnoTunnel( rxData, uno::UNO_QUERY ); - return( xUnoTunnel.is() ? reinterpret_cast(sal::static_int_cast(xUnoTunnel->getSomething( ThumbnailViewAcc::getUnoTunnelId() ))) : nullptr ); + return comphelper::getUnoTunnelImplementation(rxData); } catch(const css::uno::Exception&) { @@ -1041,11 +1040,7 @@ ThumbnailViewItemAcc* ThumbnailViewItemAcc::getImplementation( const uno::Refere { try { - uno::Reference< lang::XUnoTunnel > xUnoTunnel( rxData, uno::UNO_QUERY ); - return( xUnoTunnel.is() ? - reinterpret_cast(sal::static_int_cast( - xUnoTunnel->getSomething( ThumbnailViewItemAcc::getUnoTunnelId() ))) : - nullptr ); + return comphelper::getUnoTunnelImplementation(rxData); } catch(const css::uno::Exception&) { -- cgit