mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
Ninja: msvc6 for-scoping
This commit is contained in:
parent
44b9bbc89d
commit
f2c12887ba
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user