X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..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");