diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 12:40:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 12:40:16 +0000 |
commit | 589e8b2dbeb8f86d7ad3952670780f6a26f66346 (patch) | |
tree | cdfb16f29ac3bab8ee08210abdb41d3a54c37c4e /rsc | |
parent | e5a229ef94badaea0d6eb2714d7e8d9a81c3cc2c (diff) |
cppcheck: can reduce the scope of these variables
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/prj/start.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx index ab4278027967..0fea59ccd009 100644 --- a/rsc/source/prj/start.cxx +++ b/rsc/source/prj/start.cxx @@ -210,7 +210,7 @@ static BOOL CallRsc2( ByteString aRsc2Name, ByteString aSrsName, RscPtrPtr * pCmdLine ) { - int i, nExit; + int nExit; ByteString* pString; ByteString aRspFileName; // Response-Datei FILE * fRspFile; // Response-Datei @@ -221,7 +221,7 @@ static BOOL CallRsc2( ByteString aRsc2Name, RscVerbosity eVerbosity = RscVerbosityNormal; if( fRspFile ) { - for( i = 1; i < (int)(pCmdLine->GetCount() -1); i++ ) + for (int i = 1; i < (int)(pCmdLine->GetCount() -1); ++i) { if ( !rsc_stricmp( (char *)pCmdLine->GetEntry( i ), "-verbose" ) ) { |