From 86093b9b7c05f126e16920629398603a3a0bc1b4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 23 Dec 2010 14:58:12 +0000 Subject: cppcheck: can reduce the scope of this variable --- l10ntools/source/gsicheck.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'l10ntools') diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx index 28f9831cc076..cd10fe8880a4 100644 --- a/l10ntools/source/gsicheck.cxx +++ b/l10ntools/source/gsicheck.cxx @@ -329,10 +329,10 @@ void GSIBlock::InsertLine( GSILine* pLine, ByteString aSourceLang) return; } } - ULONG nPos = 0; if ( aSourceLang.Len() ) // only check blockstructure if source lang is given { + ULONG nPos = 0; while ( nPos < Count() ) { if ( GetObject( nPos )->GetLanguageId().Equals( pLine->GetLanguageId() ) ) -- cgit