[Libreoffice-commits] .: svtools/bmpmaker

Caolán McNamara caolan at kemper.freedesktop.org
Sun Dec 12 13:31:06 PST 2010


 svtools/bmpmaker/g2g.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a1b8fa30d9ff6b662394da2bbc68c440b3be68d9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 12 21:30:22 2010 +0000

    cppcheck: can reduce the scope of these variables

diff --git a/svtools/bmpmaker/g2g.cxx b/svtools/bmpmaker/g2g.cxx
index 3318432..daa4b8f 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++ ];


More information about the Libreoffice-commits mailing list