X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/61427a88a76a2c2ef25d0d5b8132995c6f550e5c..3970be6e2448e7f170b8edcec1060a6f89650bc2:/src/surf/ptask_L07.cpp diff --git a/src/surf/ptask_L07.cpp b/src/surf/ptask_L07.cpp index 24129d9f56..0ee2f30ddc 100644 --- a/src/surf/ptask_L07.cpp +++ b/src/surf/ptask_L07.cpp @@ -187,7 +187,7 @@ L07Action::L07Action(Model *model, int host_nb, sg_host_t *host_list, hostList_->at(i)->routeTo(hostList_->at(j), &route, &lat); latency = MAX(latency, lat); - for (auto link : route) + for (auto const& link : route) affected_links.insert(link->cname()); } } @@ -216,7 +216,7 @@ L07Action::L07Action(Model *model, int host_nb, sg_host_t *host_list, std::vector route; hostList_->at(i)->routeTo(hostList_->at(j), &route, nullptr); - for (auto link : route) + for (auto const& link : route) lmm_expand_add(model->getMaxminSystem(), link->constraint(), this->getVariable(), bytes_amount[i * host_nb + j]); }