From: Arnaud Giersch Date: Fri, 6 Mar 2020 15:05:04 +0000 (+0100) Subject: Context::get_actor() has become const. X-Git-Tag: v3.26~774 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2836fe6b65602b1bd86c2a81570d299e990ff0bd Context::get_actor() has become const. --- diff --git a/src/kernel/actor/ActorImpl.cpp b/src/kernel/actor/ActorImpl.cpp index 7c801dfc21..a6bc8e9a3a 100644 --- a/src/kernel/actor/ActorImpl.cpp +++ b/src/kernel/actor/ActorImpl.cpp @@ -47,7 +47,7 @@ int get_maxpid() ActorImpl* ActorImpl::self() { - context::Context* self_context = context::Context::self(); + const context::Context* self_context = context::Context::self(); return (self_context != nullptr) ? self_context->get_actor() : nullptr; } diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index ff5a08d256..5937ec7c47 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -41,7 +41,7 @@ xbt::signal s4u::Actor::on_destruction; // ***** Actor creation ***** Actor* Actor::self() { - kernel::context::Context* self_context = kernel::context::Context::self(); + const kernel::context::Context* self_context = kernel::context::Context::self(); if (self_context == nullptr) return nullptr;