From: Arnaud Giersch Date: Thu, 15 Apr 2021 21:07:15 +0000 (+0200) Subject: Pointer-to-const. X-Git-Tag: v3.28~455^2~31 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/27715435215d54de9f629ccb4bd0c2051892b1cd Pointer-to-const. --- diff --git a/src/kernel/routing/StarZone_test.cpp b/src/kernel/routing/StarZone_test.cpp index 4a4e878b1c..223d8d7847 100644 --- a/src/kernel/routing/StarZone_test.cpp +++ b/src/kernel/routing/StarZone_test.cpp @@ -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 links; links.push_back(zone->create_link("link1", {100})->get_impl()); std::vector 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") {