From 198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Feb 2017 11:22:18 +0200 Subject: new loplugin unoany Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89 Reviewed-on: https://gerrit.libreoffice.org/34714 Tested-by: Jenkins Reviewed-by: Noel Grandin --- pyuno/source/module/pyuno_runtime.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index a51060db812f..0238c586577a 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -861,7 +861,7 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con } if( mappedObject.is() ) { - a = css::uno::makeAny( mappedObject ); + a <<= mappedObject; } else { @@ -967,7 +967,7 @@ Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue, fprintf( stderr, "Python exception: %s\n", OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() ); #endif - ret = css::uno::makeAny( e ); + ret <<= e; } return ret; } -- cgit