Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleanup work to make is_race_reversible() a method of Transition
[simgrid.git] / examples / cpp / platform-profile / s4u-platform-profile.cpp
index 5e3602a8d1adc8f822cbd9a6c80f3b1383ec1628..f5455db47911f8b2a87c16d1ad6bc29942da2b08 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2017-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. */
@@ -26,7 +26,7 @@ static void watcher()
 
   std::string path;
   for (const auto* l : links)
-    path += (path.empty() ? "" : ", ") + std::string("link '") + l->get_name() + std::string("'");
+    path += std::string(path.empty() ? "" : ", ") + "link '" + l->get_name() + "'";
   XBT_INFO("Path from Jupiter to Fafard: %s (latency: %fs).", path.c_str(), lat);
 
   for (int i = 0; i < 10; i++) {