From d0bcf74fcadef1822b9d7cc573d9bbcac2dda064 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 12 Dec 2010 21:30:22 +0000 Subject: cppcheck: can reduce the scope of these variables --- svtools/bmpmaker/g2g.cxx | 4 ++-- 1 file 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++ ]; -- cgit