diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-11-07 12:46:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-13 18:26:10 (GMT) |
commit | 5f6432f2537203084a40f0d204a5643091f6a915 (patch) | |
tree | 214ccc5582d16dfee4d011b40933826a5e07d103 /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 9f16d428a1146e4f108dd67e743c2c00911c4383 (diff) | |
download | CMake-5f6432f2537203084a40f0d204a5643091f6a915.zip CMake-5f6432f2537203084a40f0d204a5643091f6a915.tar.gz CMake-5f6432f2537203084a40f0d204a5643091f6a915.tar.bz2 |
Resolve warnings about shadowing parameters and local variables.
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 5ac4403..9497e31 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -326,18 +326,18 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout, { cmSystemTools::ReplaceString(source, "$(IntDir)/", ""); #if defined(_WIN32) || defined(__CYGWIN__) - std::ofstream fout(source.c_str(), + std::ofstream sourceFout(source.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); #else - std::ofstream fout(source.c_str(), + std::ofstream sourceFout(source.c_str(), std::ios::out | std::ios::trunc); #endif - if(fout) + if(sourceFout) { - fout.write("# generated from CMake",22); - fout.flush(); - fout.close(); + sourceFout.write("# generated from CMake",22); + sourceFout.flush(); + sourceFout.close(); } } } |