diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-18 00:18:33 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-18 14:40:48 +0200 |
commit | 8e53efa926bc05d73c48579f63c3d662a96bd35e (patch) | |
tree | 1390a88298fe70cc0e9c3b16a97e5476f07b73d4 /pyuno/source/module/pyuno_runtime.cxx | |
parent | eef2795aa105ae52607cc158504c455da87dfd2a (diff) |
tdf#39593 use getUnoTunnelImplementation in pyuno
Change-Id: I2cbbaad921b0a3d2ea6def4da2a2527dc4d94549
Reviewed-on: https://gerrit.libreoffice.org/79075
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'pyuno/source/module/pyuno_runtime.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index d307f9af363c..62b3861288c3 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -40,6 +40,7 @@ #include <com/sun/star/reflection/theCoreReflection.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <comphelper/sequence.hxx> +#include <comphelper/servicehelper.hxx> #include <cppuhelper/exc_hlp.hxx> #include <vector> @@ -832,11 +833,7 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con if( adapterObject.is() ) { // object got already bridged ! - Reference< css::lang::XUnoTunnel > tunnel( adapterObject, UNO_QUERY ); - - Adapter *pAdapter = reinterpret_cast<Adapter*>( - tunnel->getSomething( - ::pyuno::Adapter::getUnoTunnelImplementationId() ) ); + auto pAdapter = comphelper::getUnoTunnelImplementation<Adapter>(adapterObject); mappedObject = impl->cargo->xAdapterFactory->createAdapter( adapterObject, pAdapter->getWrappedTypes() ); |