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/bmpmaker | |
parent | Resolves: fdo#32236# #i115825# Regression in wmf text rendering (diff) | |
download | core-d0bcf74fcadef1822b9d7cc573d9bbcac2dda064.tar.gz core-d0bcf74fcadef1822b9d7cc573d9bbcac2dda064.zip |
cppcheck: can reduce the scope of these variables
Diffstat (limited to 'svtools/bmpmaker')
-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++ ]; |