- for (map<int, int>::iterator it = processIDS.begin(); it != processIDS.end(); it++) {
- m->appendFiles((filename + toString(it->second) + ".temp"), filename);
- remove((filename + toString(it->second) + ".temp").c_str());
+ for (int i=0;i<processIDS.size();i++) {
+ m->appendFiles((filename + toString(processIDS[i]) + ".temp"), filename);
+ remove((filename + toString(processIDS[i]) + ".temp").c_str());