X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08a29a4221dc5cec95b766cd9b25c95dcc361df9..dc9b8feaddd53842f6204f4f24409b2382393fa9:/include/simgrid/kernel/routing/NetPoint.hpp diff --git a/include/simgrid/kernel/routing/NetPoint.hpp b/include/simgrid/kernel/routing/NetPoint.hpp index 7a49f91f0f..7984766ca9 100644 --- a/include/simgrid/kernel/routing/NetPoint.hpp +++ b/include/simgrid/kernel/routing/NetPoint.hpp @@ -26,7 +26,7 @@ class NetPoint : public simgrid::xbt::Extendable { public: enum class Type { Host, Router, NetZone }; - NetPoint(std::string name, NetPoint::Type component_type, NetZoneImpl* netzone_p); + NetPoint(const std::string& name, NetPoint::Type component_type, NetZoneImpl* netzone_p); ~NetPoint() = default; // Our rank in the vertices_ array of the netzone that contains us.