X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d7344bf4cd4b75fe33e19f2ac1994b200962aa7e..74c1bf2b26c5a3aa0d8c29674dc12993e7c0de15:/src/kernel/routing/FloydZone.cpp diff --git a/src/kernel/routing/FloydZone.cpp b/src/kernel/routing/FloydZone.cpp index 457b0e1ad5..7c5997237e 100644 --- a/src/kernel/routing/FloydZone.cpp +++ b/src/kernel/routing/FloydZone.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2017. 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. */ @@ -8,7 +8,7 @@ #include "src/surf/network_interface.hpp" #include "xbt/log.h" -#include +#include #include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf"); @@ -21,7 +21,7 @@ namespace simgrid { namespace kernel { namespace routing { -FloydZone::FloydZone(NetZone* father, const char* name) : RoutedZone(father, name) +FloydZone::FloydZone(NetZone* father, std::string name) : RoutedZone(father, name) { predecessorTable_ = nullptr; costTable_ = nullptr; @@ -74,7 +74,7 @@ void FloydZone::getLocalRoute(NetPoint* src, NetPoint* dst, sg_platf_route_cbarg getGlobalRoute(prev_dst_gw, e_route->gw_src, route->link_list, lat); } - for (auto link : *e_route->link_list) { + for (auto const& link : *e_route->link_list) { route->link_list->push_back(link); if (lat) *lat += link->latency();