From 27715435215d54de9f629ccb4bd0c2051892b1cd Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 15 Apr 2021 23:07:15 +0200 Subject: [PATCH] Pointer-to-const. --- src/kernel/routing/StarZone_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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") { -- 2.20.1