summaryrefslogtreecommitdiffstats
path: root/svtools/bmpmaker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-12 21:30:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-12 21:30:22 +0000
commitd0bcf74fcadef1822b9d7cc573d9bbcac2dda064 (patch)
treea95657e384d3845de048dcbf6f4460994fa17196 /svtools/bmpmaker
parentResolves: fdo#32236# #i115825# Regression in wmf text rendering (diff)
downloadcore-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.cxx4
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++ ];