summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-26 13:15:08 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:35 +0200
commitc353caee1c86476d98cd483f963f63c4195975f4 (patch)
tree861ed6bf7d859115980928658a07469699020443 /pyuno
parent07ca074e425ea381b9de1e7298be11678d3f6b38 (diff)
loplugin: cstylecast
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index bda00dedae6a..8f4c7545845e 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -561,7 +561,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const
{
sal_Int64 that = tunnel->getSomething( ::pyuno::Adapter::getUnoTunnelImplementationId() );
if( that )
- return ((Adapter*)sal::static_int_cast< sal_IntPtr >(that))->getWrappedObject();
+ return reinterpret_cast<Adapter*>(that)->getWrappedObject();
}
}
//This is just like the struct case:
@@ -837,8 +837,7 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con
// object got already bridged !
Reference< com::sun::star::lang::XUnoTunnel > tunnel( adapterObject, UNO_QUERY );
- Adapter *pAdapter = ( Adapter * )
- sal::static_int_cast< sal_IntPtr >(
+ Adapter *pAdapter = reinterpret_cast<Adapter*>(
tunnel->getSomething(
::pyuno::Adapter::getUnoTunnelImplementationId() ) );