From b6491f09e9dc3e41d571abce3c4f16467cb60c9c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 13 Apr 2019 14:56:54 +0200 Subject: loplugin:sequentialassign in oox..reportdesign Change-Id: I59ef0a6da411b8af8bdf8d8efb1d733db7475d9c Reviewed-on: https://gerrit.libreoffice.org/70707 Tested-by: Jenkins Reviewed-by: Noel Grandin --- pyuno/source/module/pyuno.cxx | 4 +--- pyuno/source/module/pyuno_gc.cxx | 3 +-- pyuno/source/module/pyuno_runtime.cxx | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx index a581d8335d76..bb176de4bfb5 100644 --- a/pyuno/source/module/pyuno.cxx +++ b/pyuno/source/module/pyuno.cxx @@ -573,9 +573,7 @@ static void lcl_getRowsColumns( PyUNO const * me, sal_Int32& nRows, sal_Int32& n Sequence aOutParamIndex; Sequence aOutParam; Sequence aParams; - Any aRet; - - aRet = me->members->xInvocation->invoke ( "getRows", aParams, aOutParamIndex, aOutParam ); + Any aRet = me->members->xInvocation->invoke ( "getRows", aParams, aOutParamIndex, aOutParam ); Reference< XIndexAccess > xIndexAccessRows( aRet, UNO_QUERY ); nRows = xIndexAccessRows->getCount(); aRet = me->members->xInvocation->invoke ( "getColumns", aParams, aOutParamIndex, aOutParam ); diff --git a/pyuno/source/module/pyuno_gc.cxx b/pyuno/source/module/pyuno_gc.cxx index 170e32ef7619..1be9cd4ed69b 100644 --- a/pyuno/source/module/pyuno_gc.cxx +++ b/pyuno/source/module/pyuno_gc.cxx @@ -86,8 +86,7 @@ void GCThread::execute() } catch( const css::uno::RuntimeException & e ) { - OString msg; - msg = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ); + OString msg = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ); fprintf( stderr, "Leaking python objects bridged to UNO for reason %s\n",msg.getStr()); } } diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 53c7acb709b8..10f3ce953aac 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -512,8 +512,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const { for ( i = 0; i < s.getLength (); i++) { - PyRef element; - element = any2PyObject (tc->convertTo (s[i], s[i].getValueType() )); + PyRef element = any2PyObject (tc->convertTo (s[i], s[i].getValueType() )); OSL_ASSERT( element.is() ); PyTuple_SetItem( tuple.get(), i, element.getAcquired() ); } -- cgit