Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use const& for the parameters of type std::string not affected by previous commit.
[simgrid.git] / include / simgrid / kernel / routing / VivaldiZone.hpp
index e3eaf67..ca22075 100644 (file)
@@ -48,7 +48,7 @@ class XBT_PRIVATE VivaldiZone : public ClusterZone {
 public:
   explicit VivaldiZone(NetZoneImpl* father, std::string name, resource::NetworkModel* netmodel);
 
-  void set_peer_link(NetPoint* netpoint, double bw_in, double bw_out, std::string coord);
+  void set_peer_link(NetPoint* netpoint, double bw_in, double bw_out, const std::string& coord);
   void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
 
   // deprecated
@@ -64,7 +64,7 @@ namespace vivaldi {
 class XBT_PRIVATE Coords {
 public:
   static simgrid::xbt::Extension<NetPoint, Coords> EXTENSION_ID;
-  explicit Coords(NetPoint* host, std::string str);
+  explicit Coords(NetPoint* host, const std::string& str);
   virtual ~Coords() = default;
 
   std::vector<double> coords;