X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c97656604936a7d3000ee3c98e0926b80f6f2150..23c4a29b7df1ed680b62ad1f2f868219adba0158:/src/kernel/EngineImpl.cpp diff --git a/src/kernel/EngineImpl.cpp b/src/kernel/EngineImpl.cpp index b0ca6699de..8cf08b7afe 100644 --- a/src/kernel/EngineImpl.cpp +++ b/src/kernel/EngineImpl.cpp @@ -39,7 +39,7 @@ EngineImpl::~EngineImpl() kv.second->destroy(); } -void EngineImpl::load_deployment(const std::string& file) +void EngineImpl::load_deployment(const std::string& file) const { sg_platf_exit(); sg_platf_init(); @@ -49,11 +49,11 @@ void EngineImpl::load_deployment(const std::string& file) surf_parse_close(); } -void EngineImpl::register_function(const std::string& name, actor::ActorCodeFactory code) +void EngineImpl::register_function(const std::string& name, const actor::ActorCodeFactory& code) { registered_functions[name] = code; } -void EngineImpl::register_default(actor::ActorCodeFactory code) +void EngineImpl::register_default(const actor::ActorCodeFactory& code) { default_function = code; }