Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pointer-to-const.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 15 Apr 2021 21:07:15 +0000 (23:07 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 16 Apr 2021 14:10:44 +0000 (16:10 +0200)
src/kernel/routing/StarZone_test.cpp

index 4a4e878..223d8d7 100644 (file)
@@ -78,8 +78,8 @@ TEST_CASE("kernel::routing::StarZone: Get routes: assert", "[.][assert]")
   surf_network_model_init_LegrandVelho();
   surf_cpu_model_init_Cas01();
 
-  auto* host1 = zone->create_host("netpoint1", {100});
-  auto* host2 = zone->create_host("netpoint2", {100});
+  const auto* host1 = zone->create_host("netpoint1", {100});
+  const auto* host2 = zone->create_host("netpoint2", {100});
   std::vector<simgrid::kernel::resource::LinkImpl*> links;
   links.push_back(zone->create_link("link1", {100})->get_impl());
   std::vector<simgrid::kernel::resource::LinkImpl*> links2;
@@ -154,8 +154,8 @@ TEST_CASE("kernel::routing::StarZone: Get routes (hosts)", "")
   surf_network_model_init_LegrandVelho();
   surf_cpu_model_init_Cas01();
 
-  auto* host1 = zone->create_host("netpoint1", {100});
-  auto* host2 = zone->create_host("netpoint2", {100});
+  const auto* host1 = zone->create_host("netpoint1", {100});
+  const auto* host2 = zone->create_host("netpoint2", {100});
 
   SECTION("Get route: no shared link")
   {