X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96cedde3cdbc0b8ffc3f096a1b65d021b0226f99..fde63ab63d776f60717181c36961cde86cb6d23d:/src/kernel/routing/NetPoint.cpp diff --git a/src/kernel/routing/NetPoint.cpp b/src/kernel/routing/NetPoint.cpp index 2945ccf2eb..f723a2eef3 100644 --- a/src/kernel/routing/NetPoint.cpp +++ b/src/kernel/routing/NetPoint.cpp @@ -15,7 +15,7 @@ namespace routing { simgrid::xbt::signal NetPoint::on_creation; -NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl* netzone_p) +NetPoint::NetPoint(const std::string& name, NetPoint::Type componentType, NetZoneImpl* netzone_p) : name_(name), component_type_(componentType), englobing_zone_(netzone_p) { if (netzone_p != nullptr)