[Libreoffice-commits] core.git: bridges/source

Gökhan Gurbetoğlu gokhan.gurbetoglu at pardus.org.tr
Wed Jun 8 06:03:31 UTC 2016


 bridges/source/cpp_uno/gcc3_linux_mips/uno2cpp.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 3b197594d8786a486b15cab0db78a5ac78a227bc
Author: Gökhan Gurbetoğlu <gokhan.gurbetoglu at pardus.org.tr>
Date:   Mon Jun 6 17:37:55 2016 +0300

    tdf#39440 Reduced the scope of the variable c
    
    Change-Id: I14cf653a661664eeb31015bf8aa94f7c140dd87f
    Reviewed-on: https://gerrit.libreoffice.org/26002
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: jan iversen <jani at documentfoundation.org>

diff --git a/bridges/source/cpp_uno/gcc3_linux_mips/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_mips/uno2cpp.cxx
index 74fb519..26c2479 100644
--- a/bridges/source/cpp_uno/gcc3_linux_mips/uno2cpp.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_mips/uno2cpp.cxx
@@ -60,7 +60,6 @@ namespace
     int off;                      // offset used to find function
     int nw;                       // number of words mapped
     long *p;                      // pointer to parameter overflow area
-    int c;                        // character of parameter type being decoded
     int iret, iret2;              // temporary function return values
 
     // never called
@@ -114,7 +113,7 @@ namespace
 
     /* parse the argument list up to the ending ) */
     while (*pPT != 'X') {
-      c = *pPT;
+      int c = *pPT; // character of parameter type being decoded
       switch (c) {
         case 'D':                   /* type is double */
           /* treat the same as long long */


More information about the Libreoffice-commits mailing list