X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4775ee0f232bccc4978dfbfb8153b7593be7dd77..4bd1f48f0bf1ad1703be680ec2a38d626c6a2668:/src/msg/msg_host.cpp diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp index cea2d8af1f..e40c790240 100644 --- a/src/msg/msg_host.cpp +++ b/src/msg/msg_host.cpp @@ -169,7 +169,7 @@ xbt_dict_t MSG_host_get_properties(msg_host_t host) std::map* 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;