X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/631a1a4d6e53de81ba76fbbd1e63bd07174c0f10..b87fc0829538ec066fd077e6c30ee6270b8abd78:/include/simgrid/s4u/NetZone.hpp diff --git a/include/simgrid/s4u/NetZone.hpp b/include/simgrid/s4u/NetZone.hpp index fa5ca046e4..0f50b37606 100644 --- a/include/simgrid/s4u/NetZone.hpp +++ b/include/simgrid/s4u/NetZone.hpp @@ -38,13 +38,13 @@ XBT_PUBLIC_CLASS NetZone protected: friend simgrid::kernel::routing::NetZoneImpl; - explicit NetZone(NetZone * father, const char* name); + explicit NetZone(NetZone * father, std::string name); virtual ~NetZone(); public: /** @brief Seal your netzone once you're done adding content, and before routing stuff through it */ virtual void seal(); - char* getCname(); + const char* getCname(); NetZone* getFather(); std::vector* getChildren(); // Sub netzones @@ -80,7 +80,7 @@ private: std::unordered_map properties_; NetZone* father_ = nullptr; - char* name_ = nullptr; + std::string name_; bool sealed_ = false; // We cannot add more content when sealed