Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Replace redundant type with "auto" (examples/).
[simgrid.git] / examples / s4u / mc-failing-assert / s4u-mc-failing-assert.cpp
index 7efc445..fb78611 100644 (file)
@@ -18,7 +18,7 @@ static int server(int worker_amount)
   int value_got             = -1;
   simgrid::s4u::Mailbox* mb = simgrid::s4u::Mailbox::by_name("server");
   for (int count = 0; count < worker_amount; count++) {
-    const int* msg = static_cast<int*>(mb->get());
+    const auto* msg = static_cast<int*>(mb->get());
     value_got = *msg;
     delete msg;
   }