X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f5792a3bf76ce15a573ae5e9c63097595ae5f2bd..afaf38d31c666bd960c0ca714c93c65fbb1a3a6d:/src/mc/mc_base.cpp diff --git a/src/mc/mc_base.cpp b/src/mc/mc_base.cpp index a12f15c1e7..3e022306ee 100644 --- a/src/mc/mc_base.cpp +++ b/src/mc/mc_base.cpp @@ -37,7 +37,7 @@ void wait_for_requests() #endif while (not simix_global->process_to_run.empty()) { SIMIX_process_runall(); - for (smx_actor_t process : simix_global->process_that_ran) { + for (smx_actor_t const& process : simix_global->process_that_ran) { smx_simcall_t req = &process->simcall; if (req->call != SIMCALL_NONE && not simgrid::mc::request_is_visible(req)) SIMIX_simcall_handle(req, 0); @@ -45,7 +45,7 @@ void wait_for_requests() } #if SIMGRID_HAVE_MC xbt_dynar_reset(simix_global->actors_vector); - for (std::pair kv : simix_global->process_list) { + for (std::pair const& kv : simix_global->process_list) { xbt_dynar_push_as(simix_global->actors_vector, smx_actor_t, kv.second); } #endif