X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/34ee0d36886596c4a93a84fae7b70c7ae8edb3e9..e18a7b043d161b29d0bf3f5743cb7a570241576a:/src/smpi/internals/instr_smpi.cpp diff --git a/src/smpi/internals/instr_smpi.cpp b/src/smpi/internals/instr_smpi.cpp index 522a228f3e..38e31583b5 100644 --- a/src/smpi/internals/instr_smpi.cpp +++ b/src/smpi/internals/instr_smpi.cpp @@ -176,7 +176,7 @@ void TRACE_smpi_alloc() void TRACE_smpi_release() { - for (auto elm : keys) + for (auto const& elm : keys) delete elm.second; } @@ -203,7 +203,7 @@ void TRACE_smpi_init(int rank) #if HAVE_PAPI papi_counter_t counters = smpi_process()->papi_counters(); - for (auto& it : counters) { + for (auto const& it : counters) { /** * Check whether this variable already exists or not. Otherwise, it will be created * multiple times but only the last one would be used...