Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use const& for std::string parameters.
[simgrid.git] / src / surf / network_ns3.cpp
index 71f8614..7868a63 100644 (file)
@@ -270,7 +270,7 @@ static simgrid::config::Flag<std::string>
 static simgrid::config::Flag<std::string> ns3_seed(
     "ns3/seed",
     "The random seed provided to ns-3. Either 'time' to seed with time(), blank to not set (default), or a number.", "",
-    [](std::string val) {
+    [](const std::string& val) {
       if (val.length() == 0)
         return;
       if (strcasecmp(val.c_str(), "time") == 0) {