X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f9436b840852218b39dce22d6057b6f223168daa..51c23076e2b42ff07dc167dea1cb0e3a4ab3cf68:/src/instr/jedule/jedule.cpp diff --git a/src/instr/jedule/jedule.cpp b/src/instr/jedule/jedule.cpp index 4f7841fe43..475b615623 100644 --- a/src/instr/jedule/jedule.cpp +++ b/src/instr/jedule/jedule.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2016. The SimGrid Team. +/* Copyright (c) 2010-2018. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -14,7 +14,7 @@ namespace jedule { Jedule::~Jedule() { delete this->root_container; - for (auto evt: this->event_set) + for (auto const& evt : this->event_set) delete evt; this->event_set.clear(); } @@ -32,7 +32,7 @@ void Jedule::writeOutput(FILE *file) { if (not this->meta_info.empty()) { fprintf(file, " \n"); - for (auto elm: this->meta_info) + for (auto const& elm : this->meta_info) fprintf(file, " \n",elm.first,elm.second); fprintf(file, " \n"); } @@ -42,8 +42,8 @@ void Jedule::writeOutput(FILE *file) { fprintf(file, " \n"); fprintf(file, " \n"); - for (auto event :this->event_set) - event->print(file); + for (auto const& event : this->event_set) + event->print(file); fprintf(file, " \n"); fprintf(file, "\n");