A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use const& for the parameters of type std::string not affected by previous commit.
[simgrid.git]
/
teshsuite
/
s4u
/
cloud-sharing
/
cloud-sharing.cpp
diff --git
a/teshsuite/s4u/cloud-sharing/cloud-sharing.cpp
b/teshsuite/s4u/cloud-sharing/cloud-sharing.cpp
index
4121731
..
ef5cb90
100644
(file)
--- a/
teshsuite/s4u/cloud-sharing/cloud-sharing.cpp
+++ b/
teshsuite/s4u/cloud-sharing/cloud-sharing.cpp
@@
-45,7
+45,7
@@
static void run_test_process(std::string name, simgrid::s4u::Host *location, int
simgrid::s4u::Actor::create(std::move(name), location, computation_fun, arg);
}
simgrid::s4u::Actor::create(std::move(name), location, computation_fun, arg);
}
-static void test_energy_consumption(
std::string
name, int nb_cores)
+static void test_energy_consumption(
const std::string&
name, int nb_cores)
{
double new_energy = 0;
{
double new_energy = 0;
@@
-67,7
+67,7
@@
static void test_energy_consumption(std::string name, int nb_cores)
}
}
}
}
-static void run_test(
std::string
chooser)
+static void run_test(
const std::string&
chooser)
{
simgrid::s4u::Host *pm0 = simgrid::s4u::Host::by_name("node-0.1core.org");
simgrid::s4u::Host *pm1 = simgrid::s4u::Host::by_name("node-1.1core.org");
{
simgrid::s4u::Host *pm0 = simgrid::s4u::Host::by_name("node-0.1core.org");
simgrid::s4u::Host *pm1 = simgrid::s4u::Host::by_name("node-1.1core.org");