X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/052f2deb51abb0bdbb2a2b6c7d052acdc030cfd5..148987a2fffe74a2a14294ea9ace78e5b9c8bbae:/src/s4u/s4u_Actor.cpp diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index 99d80a7781..fe048a57b7 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -43,7 +43,7 @@ ActorPtr Actor::init(const std::string& name, s4u::Host* host) { smx_actor_t self = SIMIX_process_self(); kernel::actor::ActorImpl* actor = simix::simcall([self, &name, host] { return self->init(name, host).get(); }); - return actor->ciface(); + return actor->iface(); } ActorPtr Actor::start(const std::function& code) @@ -232,7 +232,7 @@ void Actor::kill_all() simix::simcall([self] { self->kill_all(); }); } -std::unordered_map* Actor::get_properties() const +const std::unordered_map* Actor::get_properties() const { return pimpl_->get_properties(); } @@ -525,7 +525,7 @@ xbt_dict_t sg_actor_get_properties(sg_actor_t actor) { xbt_assert(actor != nullptr, "Invalid parameter: First argument must not be nullptr"); xbt_dict_t as_dict = xbt_dict_new_homogeneous(xbt_free_f); - std::unordered_map* props = actor->get_properties(); + const std::unordered_map* props = actor->get_properties(); if (props == nullptr) return nullptr; for (auto const& kv : *props) {