[Libreoffice-commits] .: rsc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Dec 5 04:40:23 PST 2010
rsc/source/prj/start.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit dfd710815b96a381066c94eb32f6e270bce5dcd4
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 5 12:40:16 2010 +0000
cppcheck: can reduce the scope of these variables
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index 0517af7..16e034e 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -210,7 +210,7 @@ static BOOL CallRsc2( ByteString aRsc2Name,
ByteString aSrsName,
RscPtrPtr * pCmdLine )
{
- int i, nExit;
+ int nExit;
ByteString* pString;
ByteString aRspFileName; // Response-Datei
FILE * fRspFile; // Response-Datei
@@ -221,7 +221,7 @@ static BOOL CallRsc2( ByteString aRsc2Name,
RscVerbosity eVerbosity = RscVerbosityNormal;
if( fRspFile )
{
- for( i = 1; i < (int)(pCmdLine->GetCount() -1); i++ )
+ for (int i = 1; i < (int)(pCmdLine->GetCount() -1); ++i)
{
if ( !rsc_stricmp( (char *)pCmdLine->GetEntry( i ), "-verbose" ) )
{
More information about the Libreoffice-commits
mailing list