diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-12 21:30:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-12 21:30:22 +0000 |
commit | d0bcf74fcadef1822b9d7cc573d9bbcac2dda064 (patch) | |
tree | a95657e384d3845de048dcbf6f4460994fa17196 /svtools | |
parent | 89a82209a02f3f0e47b180b6dbd1ac21b26fe860 (diff) |
cppcheck: can reduce the scope of these variables
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/bmpmaker/g2g.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/bmpmaker/g2g.cxx b/svtools/bmpmaker/g2g.cxx index 34b37ab43211..6413606bd6b7 100644 --- a/svtools/bmpmaker/g2g.cxx +++ b/svtools/bmpmaker/g2g.cxx @@ -148,8 +148,7 @@ void G2GApp::ShowUsage() int G2GApp::Start( const ::std::vector< String >& rArgs ) { - int nCmdCount = rArgs.size(); - USHORT nCurCmd = 0; + size_t nCmdCount = rArgs.size(); cExitCode = EXIT_NOERROR; @@ -157,6 +156,7 @@ int G2GApp::Start( const ::std::vector< String >& rArgs ) { GraphicFilter aFilter( sal_False ); String aInFile, aOutFile, aFilterStr, aFilterPath, aTransColStr; + size_t nCurCmd = 0; aInFile = rArgs[ nCurCmd++ ]; aOutFile = rArgs[ nCurCmd++ ]; |