X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2a81e806265c18e1c1f8ff624a37f317105b3904..745a5ade14924e2b2684a280e4cb75a9c1d3bee7:/src/xbt/xbt_replay.cpp diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index e782ab2c7a..25d6d2c54c 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2019. 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. */ @@ -163,7 +163,7 @@ int replay_runner(const char* actor_name, const char* trace_filename) * @param action_name the reference name of the action. * @param function prototype given by the type: void...(const char** action) */ -void xbt_replay_action_register(const char* action_name, action_fun function) +void xbt_replay_action_register(const char* action_name, const action_fun& function) { simgrid::xbt::action_funs[std::string(action_name)] = function; }