summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmcldeps.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index d62bd90..356e214 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -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();
}