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
tidy up PropertyHolder
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index
318a719
..
e57d0d0
100644
(file)
--- a/
src/surf/sg_platf.cpp
+++ b/
src/surf/sg_platf.cpp
@@
-646,8
+646,8
@@
void sg_platf_new_Zone_set_properties(std::unordered_map<std::string, std::strin
{
xbt_assert(current_routing, "Cannot set properties of the current Zone: none under construction");
-
for (auto kv = props->begin(); kv != props->end(); ++kv
)
- current_routing->
get_iface()->set_property(kv->first, kv->second
);
+
if (props
)
+ current_routing->
set_properties(*props
);
}
/**