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
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git]
/
src
/
msg
/
msg_host.cpp
diff --git
a/src/msg/msg_host.cpp
b/src/msg/msg_host.cpp
index
82a9ad7
..
e40c790
100644
(file)
--- a/
src/msg/msg_host.cpp
+++ b/
src/msg/msg_host.cpp
@@
-166,10
+166,10
@@
xbt_dict_t MSG_host_get_properties(msg_host_t host)
{
xbt_assert((host != nullptr), "Invalid parameters (host is nullptr)");
xbt_dict_t as_dict = xbt_dict_new_homogeneous(xbt_free_f);
- std::
unordered_
map<std::string, std::string>* props = host->getProperties();
+ std::map<std::string, std::string>* props = host->getProperties();
if (props == nullptr)
return nullptr;
- for (auto elm : *props) {
+ for (auto
const&
elm : *props) {
xbt_dict_set(as_dict, elm.first.c_str(), xbt_strdup(elm.second.c_str()), nullptr);
}
return as_dict;
@@
-262,7
+262,7
@@
xbt_dict_t MSG_host_get_storage_content(msg_host_t host)
{
xbt_assert((host != nullptr), "Invalid parameters");
xbt_dict_t contents = xbt_dict_new_homogeneous(nullptr);
- for (auto elm : host->getMountedStorages())
+ for (auto
const&
elm : host->getMountedStorages())
xbt_dict_set(contents, elm.first.c_str(), MSG_storage_get_content(elm.second), nullptr);
return contents;