diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-06 19:51:04 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-11 06:15:26 +0000 |
commit | 0e55feea6a6bb516c4198960b14192f363f08601 (patch) | |
tree | 3b6c9912c46423c089e8ee9f7533caabf8f1e6c3 /bridges/source/cpp_uno/gcc3_linux_arm | |
parent | java: reduce visibility of fields and methods (diff) | |
download | core-0e55feea6a6bb516c4198960b14192f363f08601.tar.gz core-0e55feea6a6bb516c4198960b14192f363f08601.zip |
reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I1122494e295af756ef3cc32717fe204505aeb9e3
Reviewed-on: https://gerrit.libreoffice.org/13335
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'bridges/source/cpp_uno/gcc3_linux_arm')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx index 752137fbedc8..0a25f486692b 100644 --- a/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx @@ -406,11 +406,9 @@ static void cpp_call( void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion - bool bSimpleReturn = true; if (pReturnTypeDescr) { - if (arm::return_in_hidden_param( pReturnTypeRef ) ) - bSimpleReturn = false; + bool bSimpleReturn = !arm::return_in_hidden_param( pReturnTypeRef ) if (bSimpleReturn) pCppReturn = pUnoReturn; // direct way for simple types |