summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-05 12:07:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-05 12:07:05 +0000
commitc6321192e6968c424218236d069a342c2686b427 (patch)
tree329238e6453bbcf22bd0cd4fb97ca711c5290405
parent5c75c51e9b096b4a88dd019d0cb8ca4c199b8147 (diff)
cppcheck: the scope of this variable can be reduced
-rw-r--r--idl/source/cmptools/lex.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index e6d4d8688e..fa0c47756f 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 )
{