diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-23 14:58:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-23 14:58:12 +0000 |
commit | 86093b9b7c05f126e16920629398603a3a0bc1b4 (patch) | |
tree | 3a37704a4262e334f1ef9d524744dcabb9ec4c8f /l10ntools | |
parent | bdff19462429f8ed55cfd8a14842785a227cd627 (diff) |
cppcheck: can reduce the scope of this variable
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/gsicheck.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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() ) ) |