Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Context::get_actor() has become const.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 6 Mar 2020 15:05:04 +0000 (16:05 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 9 Mar 2020 09:14:45 +0000 (10:14 +0100)
src/kernel/actor/ActorImpl.cpp
src/s4u/s4u_Actor.cpp

index 7c801df..a6bc8e9 100644 (file)
@@ -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;
 }
index ff5a08d..5937ec7 100644 (file)
@@ -41,7 +41,7 @@ xbt::signal<void(Actor const&)> 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;