X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/21fe278c8460849931b37ccde22e944edec46f71..afc75f7692eff7f345826abe82d1e23ac1c18763:/examples/s4u/replay-io/s4u-replay-io.cpp diff --git a/examples/s4u/replay-io/s4u-replay-io.cpp b/examples/s4u/replay-io/s4u-replay-io.cpp index 93af1ff023..f5205e47d3 100644 --- a/examples/s4u/replay-io/s4u-replay-io.cpp +++ b/examples/s4u/replay-io/s4u-replay-io.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2017-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -21,7 +21,7 @@ static std::unordered_map opened_files; } else \ ((void)0) -static void log_action(simgrid::xbt::ReplayAction& action, double date) +static void log_action(const simgrid::xbt::ReplayAction& action, double date) { if (XBT_LOG_ISENABLED(replay_io, xbt_log_priority_verbose)) { std::string s = boost::algorithm::join(action, " "); @@ -83,7 +83,7 @@ public: std::string file_name = action[2]; double clock = simgrid::s4u::Engine::get_clock(); - simgrid::s4u::File* file = get_file_descriptor(file_name); + const simgrid::s4u::File* file = get_file_descriptor(file_name); ACT_DEBUG("Entering Close: %s (filename: %s)", NAME.c_str(), file_name.c_str()); delete file;