X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/093b834960aa7457d220feacad9542c4606ed8a0..68fddbaeb8d7a332bec9eb09ef0e7e548ac1850c:/src/xbt/xbt_replay.cpp diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index 7a35e2fdf8..beee5cdbbe 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -38,6 +38,7 @@ public: fs = new std::ifstream(filename, std::ifstream::in); xbt_assert(fs->is_open(), "Cannot read replay file '%s'", filename); } + ReplayReader(const ReplayReader&) = delete; ~ReplayReader() { delete fs; @@ -104,7 +105,7 @@ static void handle_action(ReplayAction* action) char** c_action = new char*[action->size() + 1]; action_fun function = action_funs.at(action->at(1)); int i = 0; - for (auto arg : *action) { + for (auto const& arg : *action) { c_action[i] = xbt_strdup(arg.c_str()); i++; }