X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5e472a6023eb14e7396b16fa4eb47c805d8f4acf..2807fde4fd1f59c230d69a934634c5dfb77905f2:/src/kernel/routing/NetPoint.hpp diff --git a/src/kernel/routing/NetPoint.hpp b/src/kernel/routing/NetPoint.hpp index fd54a2f75e..0a4827427d 100644 --- a/src/kernel/routing/NetPoint.hpp +++ b/src/kernel/routing/NetPoint.hpp @@ -31,8 +31,8 @@ public: // Our rank in the vertices_ array of the netzone that contains us. unsigned int id() { return id_; } - std::string name() { return name_; } - const char* cname() { return name_.c_str(); } + const std::string& getName() const { return name_; } + const char* getCname() const { return name_.c_str(); } /** @brief the NetZone in which this NetPoint is included */ NetZoneImpl* netzone() { return netzone_; }