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
[sonar] Constify pointer and reference parameters in src/smpi/.
[simgrid.git]
/
src
/
smpi
/
plugins
/
load_balancer
/
load_balancer.hpp
diff --git
a/src/smpi/plugins/load_balancer/load_balancer.hpp
b/src/smpi/plugins/load_balancer/load_balancer.hpp
index
4924337
..
3c87f07
100644
(file)
--- a/
src/smpi/plugins/load_balancer/load_balancer.hpp
+++ b/
src/smpi/plugins/load_balancer/load_balancer.hpp
@@
-46,11
+46,8
@@
public:
void for_each_actor(simgrid::s4u::Host* host, const std::function<void(simgrid::s4u::ActorPtr)>& callback)
{
auto range = host_to_actors.equal_range(host);
void for_each_actor(simgrid::s4u::Host* host, const std::function<void(simgrid::s4u::ActorPtr)>& callback)
{
auto range = host_to_actors.equal_range(host);
- std::for_each(
- range.first,
- range.second,
- [&callback](host_to_actors_map_t::value_type& x) { callback(x.second); }
- );
+ std::for_each(range.first, range.second,
+ [&callback](host_to_actors_map_t::value_type const& x) { callback(x.second); });
}
};
}
};