summaryrefslogtreecommitdiffstats
path: root/Source/cmw9xcom.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-11-07 12:46:44 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-13 18:26:10 (GMT)
commit5f6432f2537203084a40f0d204a5643091f6a915 (patch)
tree214ccc5582d16dfee4d011b40933826a5e07d103 /Source/cmw9xcom.cxx
parent9f16d428a1146e4f108dd67e743c2c00911c4383 (diff)
downloadCMake-5f6432f2537203084a40f0d204a5643091f6a915.zip
CMake-5f6432f2537203084a40f0d204a5643091f6a915.tar.gz
CMake-5f6432f2537203084a40f0d204a5643091f6a915.tar.bz2
Resolve warnings about shadowing parameters and local variables.
Diffstat (limited to 'Source/cmw9xcom.cxx')
-rw-r--r--Source/cmw9xcom.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmw9xcom.cxx b/Source/cmw9xcom.cxx
index e6014b3..ab238d5 100644
--- a/Source/cmw9xcom.cxx
+++ b/Source/cmw9xcom.cxx
@@ -31,14 +31,14 @@ int main (int argc, char *argv[])
int cc;
for ( cc = 2; cc < argc; cc ++ )
{
- std::string arg = argv[cc];
- if ( (arg.find_first_of(" ") != arg.npos) &&
- (arg.find_first_of("\"") == arg.npos) )
+ std::string nextArg = argv[cc];
+ if ( (nextArg.find_first_of(" ") != nextArg.npos) &&
+ (nextArg.find_first_of("\"") == nextArg.npos) )
{
- arg = "\"" + arg + "\"";
+ nextArg = "\"" + nextArg + "\"";
}
command += " ";
- command += arg;
+ command += nextArg;
}
return cmWin32ProcessExecution::Windows9xHack(command.c_str());