mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-15 19:50:31 -06:00
cmcmd: Rename loop iteration variable for clarity
This commit is contained in:
@@ -358,8 +358,8 @@ int cmcmd::HandleCoCompileCommands(std::vector<std::string>& args)
|
|||||||
std::string commandFound; // the command that was in the args list
|
std::string commandFound; // the command that was in the args list
|
||||||
std::vector<std::string> orig_cmd;
|
std::vector<std::string> orig_cmd;
|
||||||
bool doing_options = true;
|
bool doing_options = true;
|
||||||
for (std::string::size_type cc = 2; cc < args.size(); cc++) {
|
for (std::string::size_type i = 2; i < args.size(); ++i) {
|
||||||
std::string const& arg = args[cc];
|
std::string const& arg = args[i];
|
||||||
// if the arg is -- then the rest of the args after
|
// if the arg is -- then the rest of the args after
|
||||||
// go into orig_cmd
|
// go into orig_cmd
|
||||||
if (arg == "--") {
|
if (arg == "--") {
|
||||||
|
|||||||
Reference in New Issue
Block a user