diff options
author | Brad King <brad.king@kitware.com> | 2017-10-27 12:21:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-27 12:36:28 (GMT) |
commit | 1c075ffd60ba9354f8aaf314f0938aeb4247adc8 (patch) | |
tree | 95828fb5f0738d078226d3e097bea17baf25fc85 /Source/cmcmd.cxx | |
parent | 319622a49fb300cd8a7efd8378421a32204510de (diff) | |
download | CMake-1c075ffd60ba9354f8aaf314f0938aeb4247adc8.zip CMake-1c075ffd60ba9354f8aaf314f0938aeb4247adc8.tar.gz CMake-1c075ffd60ba9354f8aaf314f0938aeb4247adc8.tar.bz2 |
cmcmd: Rename loop iteration variable for clarity
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index ed507fd..3ca0513 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -358,8 +358,8 @@ int cmcmd::HandleCoCompileCommands(std::vector<std::string>& args) std::string commandFound; // the command that was in the args list std::vector<std::string> orig_cmd; bool doing_options = true; - for (std::string::size_type cc = 2; cc < args.size(); cc++) { - std::string const& arg = args[cc]; + for (std::string::size_type i = 2; i < args.size(); ++i) { + std::string const& arg = args[i]; // if the arg is -- then the rest of the args after // go into orig_cmd if (arg == "--") { |