X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6422dfed0cfd685d9e99129e0cd0505ac913c4f3..c6683b41cf9ecda70c1d4d75d1effc61903a894f:/teshsuite/s4u/actor-suspend/actor-suspend.cpp diff --git a/teshsuite/s4u/actor-suspend/actor-suspend.cpp b/teshsuite/s4u/actor-suspend/actor-suspend.cpp index f7f795d487..91aad4daa1 100644 --- a/teshsuite/s4u/actor-suspend/actor-suspend.cpp +++ b/teshsuite/s4u/actor-suspend/actor-suspend.cpp @@ -19,7 +19,7 @@ public: void operator()() const { XBT_INFO("Starting."); - auto mailbox = simgrid::s4u::Mailbox::by_name("receiver"); + auto* mailbox = simgrid::s4u::Mailbox::by_name("receiver"); int data = *mailbox->get(); XBT_INFO("Got %d at the end", data); } @@ -29,7 +29,7 @@ class Suspender { const simgrid::s4u::ActorPtr& receiver; public: - Suspender(simgrid::s4u::ActorPtr& receiver) : receiver(receiver) {} + explicit Suspender(const simgrid::s4u::ActorPtr& receiver) : receiver(receiver) {} void operator()() const { @@ -42,7 +42,7 @@ public: simgrid::s4u::this_actor::sleep_for(10); XBT_INFO("Sending a message to the receiver..."); - auto mailbox = simgrid::s4u::Mailbox::by_name("receiver"); + auto* mailbox = simgrid::s4u::Mailbox::by_name("receiver"); static int data = 42; mailbox->put(&data, 4);