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 structured binding declarations (sonar, c++17).
[simgrid.git]
/
src
/
kernel
/
routing
/
StarZone.cpp
diff --git
a/src/kernel/routing/StarZone.cpp
b/src/kernel/routing/StarZone.cpp
index
ee9a808
..
2de8f5e
100644
(file)
--- a/
src/kernel/routing/StarZone.cpp
+++ b/
src/kernel/routing/StarZone.cpp
@@
-170,10
+170,10
@@
void StarZone::do_seal()
{
/* add default empty links if nothing was configured by user */
for (auto const& node : get_vertices()) {
- auto
route
= routes_.try_emplace(node->id());
- if (
route.secon
d) {
- route
.first
->second.links_down_set = true;
- route
.first
->second.links_up_set = true;
+ auto
[route, inserted]
= routes_.try_emplace(node->id());
+ if (
inserte
d) {
+ route->second.links_down_set = true;
+ route->second.links_up_set = true;
}
}
}