diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 14:56:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 21:14:26 +0200 |
commit | b6491f09e9dc3e41d571abce3c4f16467cb60c9c (patch) | |
tree | dfe1b5ad2273be6f5423a2b1994e1855811d3f78 /pyuno | |
parent | 5e1719ff1ed5b4350684c3ed67b5375bb49e0223 (diff) |
loplugin:sequentialassign in oox..reportdesign
Change-Id: I59ef0a6da411b8af8bdf8d8efb1d733db7475d9c
Reviewed-on: https://gerrit.libreoffice.org/70707
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno.cxx | 4 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_gc.cxx | 3 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 3 |
3 files changed, 3 insertions, 7 deletions
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<short> aOutParamIndex; Sequence<Any> aOutParam; Sequence<Any> 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() ); } |