-/* 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. */
} 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, " ");
simgrid::xbt::replay_runner(actor_name, nullptr);
}
- void operator()()
+ void operator()() const
{
// Nothing to do here
}
std::string full_name = simgrid::s4u::this_actor::get_name() + ":" + file_name;
ACT_DEBUG("Entering Open: %s (filename: %s)", NAME.c_str(), file_name.c_str());
- simgrid::s4u::File* file = new simgrid::s4u::File(file_name, NULL);
+ auto* file = new simgrid::s4u::File(file_name, NULL);
opened_files.insert({full_name, file});
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;