summaryrefslogtreecommitdiffstats
path: root/pyuno
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-09 13:59:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-12 07:37:24 +0100
commit2f5868c4309d49ad495e0763b5b57d1f7f98e377 (patch)
treeba498138c67436ce30b5d9585353c50a1c5020bf /pyuno
parentloplugin:unusedmethods (diff)
downloadcore-2f5868c4309d49ad495e0763b5b57d1f7f98e377.tar.gz
core-2f5868c4309d49ad495e0763b5b57d1f7f98e377.zip
loplugin:redundantfcast look for redundant copies in return statements
Change-Id: I5f416c865dfe1c36018784246a8007452eb42008 Reviewed-on: https://gerrit.libreoffice.org/50996 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index 5098c803b5f8..ee66c7537d8d 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -1713,7 +1713,7 @@ PyRef PyUNO_new (
{
sal_Int64 that = xUnoTunnel->getSomething( ::pyuno::Adapter::getUnoTunnelImplementationId() );
if( that )
- return PyRef( reinterpret_cast<Adapter*>(that)->getWrappedObject() );
+ return reinterpret_cast<Adapter*>(that)->getWrappedObject();
}
}
if( !Py_IsInitialized() )