[Libreoffice-commits] .: idl/source

Caolán McNamara caolan at kemper.freedesktop.org
Sun Dec 5 04:07:17 PST 2010


 idl/source/cmptools/lex.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit c6321192e6968c424218236d069a342c2686b427
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 5 12:07:05 2010 +0000

    cppcheck: the scope of this variable can be reduced

diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index e6d4d86..fa0c477 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -338,7 +338,6 @@ ULONG SvTokenStream::GetNumber()
 *************************************************************************/
 BOOL SvTokenStream::MakeToken( SvToken & rToken )
 {
-    int             c1;
     USHORT          i;
 
     do
@@ -361,7 +360,7 @@ BOOL SvTokenStream::MakeToken( SvToken & rToken )
     {
         // Zeit Optimierung, keine Kommentare
         //ByteString aComment( (char)c );
-        c1 = c;
+        int c1 = c;
         c = GetFastNextChar();
         if( '/' == c )
         {


More information about the Libreoffice-commits mailing list