Commit f2c12887 authored by Peter Kuemmel's avatar Peter Kuemmel

Ninja: msvc6 for-scoping

parent 44b9bbc8
......@@ -448,17 +448,17 @@ Subprocess* SubprocessSet::NextFinished() {
}
void SubprocessSet::Clear() {
for (std::vector<Subprocess*>::iterator i = running_.begin();
i != running_.end(); ++i) {
if ((*i)->child_.hProcess) {
std::vector<Subprocess*>::iterator it = running_.begin();
for (; it != running_.end(); ++it) {
if ((*it)->child_.hProcess) {
if (!GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT,
(*i)->child_.dwProcessId))
(*it)->child_.dwProcessId))
Win32Fatal("GenerateConsoleCtrlEvent");
}
}
for (std::vector<Subprocess*>::iterator i = running_.begin();
i != running_.end(); ++i)
delete *i;
it = running_.begin();
for (; it != running_.end(); ++it)
delete *it;
running_.clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment