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
Plug memleak.
[simgrid.git]
/
src
/
s4u
/
s4u_Host.cpp
diff --git
a/src/s4u/s4u_Host.cpp
b/src/s4u/s4u_Host.cpp
index 3dba929a30d991df2c98fb75b758a38825ce72c2..846790fadf2138dc2f73e61210c3f16a59f95737 100644
(file)
--- a/
src/s4u/s4u_Host.cpp
+++ b/
src/s4u/s4u_Host.cpp
@@
-152,7
+152,7
@@
void Host::route_to(const Host* dest, std::vector<Link*>& links, double* latency
{
std::vector<kernel::resource::LinkImpl*> linkImpls;
this->route_to(dest, linkImpls, latency);
- for (
kernel::resource::LinkImpl* const&
l : linkImpls)
+ for (
auto*
l : linkImpls)
links.push_back(l->get_iface());
}
@@
-163,8
+163,8
@@
void Host::route_to(const Host* dest, std::vector<kernel::resource::LinkImpl*>&
if (XBT_LOG_ISENABLED(surf_route, xbt_log_priority_debug)) {
XBT_CDEBUG(surf_route, "Route from '%s' to '%s' (latency: %f):", get_cname(), dest->get_cname(),
(latency == nullptr ? -1 : *latency));
- for (auto const
&
link : links)
- XBT_CDEBUG(surf_route, "
Link %s
", link->get_cname());
+ for (auto const
*
link : links)
+ XBT_CDEBUG(surf_route, "
Link '%s'
", link->get_cname());
}
}
@@
-204,7
+204,7
@@
void Host::set_property(const std::string& key, const std::string& value)
kernel::actor::simcall([this, &key, &value] { this->pimpl_->set_property(key, value); });
}
-void Host::set_properties(const std::map<std::string, std::string>& properties)
+void Host::set_properties(const std::
unordered_
map<std::string, std::string>& properties)
{
kernel::actor::simcall([this, &properties] { this->pimpl_->set_properties(properties); });
}