summaryrefslogtreecommitdiffstats
path: root/Source/cmcldeps.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-16 10:51:25 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-16 10:51:25 (GMT)
commitf2c12887ba9fcde6c1f70ade72d231d131d172e5 (patch)
treeb36a5d3376507b3345d4201da58cd8fa82094a19 /Source/cmcldeps.cxx
parent44b9bbc89dee8c86cfc48ec4cb2cbe952b05c20f (diff)
downloadCMake-f2c12887ba9fcde6c1f70ade72d231d131d172e5.zip
CMake-f2c12887ba9fcde6c1f70ade72d231d131d172e5.tar.gz
CMake-f2c12887ba9fcde6c1f70ade72d231d131d172e5.tar.bz2
Ninja: msvc6 for-scoping
Diffstat (limited to 'Source/cmcldeps.cxx')
-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();
}