]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/routing/NetPoint.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix Werror=missing-field-initializers with older compilers.
[simgrid.git] / src / kernel / routing / NetPoint.hpp
index fd54a2f75edcd083d92f7cc5e7b833a26ffd909d..0a4827427d0ffc6b438879caa413a350bda7d908 100644 (file)
@@ -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_; }