X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6ed6eba940167c6e846f8edce41d08d0e8192ff..13a2073e56f059a44fc91c128ca16aa0cf48e6b2:/src/surf/network_cm02.cpp diff --git a/src/surf/network_cm02.cpp b/src/surf/network_cm02.cpp index e29374915e..dc4afd650a 100644 --- a/src/surf/network_cm02.cpp +++ b/src/surf/network_cm02.cpp @@ -200,12 +200,13 @@ void NetworkCm02Model::update_actions_state_full(double /*now*/, double delta) } void NetworkCm02Model::comm_action_expand_constraints(const s4u::Host* src, const s4u::Host* dst, - NetworkCm02Action* action, const std::vector& route, - const std::vector& back_route) + const NetworkCm02Action* action, + const std::vector& route, + const std::vector& back_route) const { /* expand route links constraints for route and back_route */ - NetworkWifiLink* src_wifi_link = nullptr; - NetworkWifiLink* dst_wifi_link = nullptr; + const NetworkWifiLink* src_wifi_link = nullptr; + const NetworkWifiLink* dst_wifi_link = nullptr; if (not route.empty() && route.front()->get_sharing_policy() == s4u::Link::SharingPolicy::WIFI) { src_wifi_link = static_cast(route.front()); }