Ninja: msvc6 for-scoping

This commit is contained in:
Peter Kuemmel 2012-06-16 12:51:25 +02:00
parent 44b9bbc89d
commit f2c12887ba

View File

@ -448,17 +448,17 @@ Subprocess* SubprocessSet::NextFinished() {
} }
void SubprocessSet::Clear() { void SubprocessSet::Clear() {
for (std::vector<Subprocess*>::iterator i = running_.begin(); std::vector<Subprocess*>::iterator it = running_.begin();
i != running_.end(); ++i) { for (; it != running_.end(); ++it) {
if ((*i)->child_.hProcess) { if ((*it)->child_.hProcess) {
if (!GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, if (!GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT,
(*i)->child_.dwProcessId)) (*it)->child_.dwProcessId))
Win32Fatal("GenerateConsoleCtrlEvent"); Win32Fatal("GenerateConsoleCtrlEvent");
} }
} }
for (std::vector<Subprocess*>::iterator i = running_.begin(); it = running_.begin();
i != running_.end(); ++i) for (; it != running_.end(); ++it)
delete *i; delete *it;
running_.clear(); running_.clear();
} }