X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2ad536e710c5936ff8e525e4bbb5e7046f292aac..a449af6bf417de8738f029835e10ac0c21e82730:/src/s4u/s4u_Actor.cpp diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index 1e022aa5ea..3e84903f38 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -413,7 +413,7 @@ ExecPtr exec_async(double flops) aid_t get_pid() { - auto* self = simgrid::kernel::actor::ActorImpl::self(); + const auto* self = simgrid::kernel::actor::ActorImpl::self(); return self ? self->get_pid() : 0; } @@ -429,7 +429,7 @@ std::string get_name() const char* get_cname() { - auto* self = simgrid::kernel::actor::ActorImpl::self(); + const auto* self = simgrid::kernel::actor::ActorImpl::self(); return self ? self->get_cname() : nullptr; }