X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4de2a148bea34f550b79c07fb5e80ac36e6aa0e9..40ee10e13b61bfb28374d96ade010a262b5abd44:/examples/cpp/trace-categories/s4u-trace-categories.cpp diff --git a/examples/cpp/trace-categories/s4u-trace-categories.cpp b/examples/cpp/trace-categories/s4u-trace-categories.cpp index 29eb21f673..adf6f3d3db 100644 --- a/examples/cpp/trace-categories/s4u-trace-categories.cpp +++ b/examples/cpp/trace-categories/s4u-trace-categories.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -22,7 +22,7 @@ struct Task { static void master() { - auto mbox = sg4::Mailbox::by_name("master_mailbox"); + auto* mbox = sg4::Mailbox::by_name("master_mailbox"); for (int i = 0; i < 10; i++) { Task task; if (i % 2) @@ -39,7 +39,7 @@ static void master() static void worker() { - auto mbox = sg4::Mailbox::by_name("master_mailbox"); + auto* mbox = sg4::Mailbox::by_name("master_mailbox"); while (true) { auto task = mbox->get_unique(); if (task->name == "finalize") {