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

Public GIT Repository
[sonar] Remove the use of "sprintf".
[simgrid.git] / src / kernel / routing / FloydZone.cpp
index c3d32b32ae6ed51ce20120a36143660788aeb4f6..e791ece6ec6f1d2467d6c0c25d70c41c25e65695 100644 (file)
@@ -22,8 +22,8 @@ namespace simgrid {
 namespace kernel {
 namespace routing {
 
-FloydZone::FloydZone(NetZoneImpl* father, std::string name, resource::NetworkModel* netmodel)
-    : RoutedZone(father, std::move(name), netmodel)
+FloydZone::FloydZone(NetZoneImpl* father, const std::string& name, resource::NetworkModel* netmodel)
+    : RoutedZone(father, name, netmodel)
 {
   predecessor_table_ = nullptr;
   cost_table_        = nullptr;