From: Arnaud Giersch Date: Thu, 8 Jul 2021 22:22:27 +0000 (+0200) Subject: Missing const. X-Git-Tag: v3.28~21 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/899d3c7135a24cd2da1e47d00eeae15310a8fc2f Missing const. --- diff --git a/docs/source/app_s4u.rst b/docs/source/app_s4u.rst index c120358a85..7802af7113 100644 --- a/docs/source/app_s4u.rst +++ b/docs/source/app_s4u.rst @@ -1617,7 +1617,7 @@ Routing data .. doxygenfunction:: simgrid::s4u::NetZone::add_component(kernel::routing::NetPoint *elm) .. doxygenfunction:: simgrid::s4u::NetZone::add_route .. doxygenfunction:: simgrid::s4u::NetZone::get_children() const - .. doxygenfunction:: simgrid::s4u::NetZone::get_parent() + .. doxygenfunction:: simgrid::s4u::NetZone::get_parent() const .. group-tab:: C diff --git a/src/kernel/actor/ActorImpl.cpp b/src/kernel/actor/ActorImpl.cpp index 149fa6313f..347c9614d0 100644 --- a/src/kernel/actor/ActorImpl.cpp +++ b/src/kernel/actor/ActorImpl.cpp @@ -533,7 +533,7 @@ int SIMIX_process_count() // XBT_ATTRIB_DEPRECATED_v329 void* SIMIX_process_self_get_data() // XBT_ATTRIB_DEPRECATED_v329 { - simgrid::s4u::Actor* self = simgrid::s4u::Actor::self(); + const simgrid::s4u::Actor* self = simgrid::s4u::Actor::self(); return self ? self->get_data() : nullptr; }