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
Move hosts_ to private, and deal with consequences
[simgrid.git]
/
src
/
kernel
/
activity
/
CommImpl.cpp
diff --git
a/src/kernel/activity/CommImpl.cpp
b/src/kernel/activity/CommImpl.cpp
index
87e8c5e
..
e027255
100644
(file)
--- a/
src/kernel/activity/CommImpl.cpp
+++ b/
src/kernel/activity/CommImpl.cpp
@@
-64,7
+64,7
@@
CommImpl& CommImpl::set_source(s4u::Host* from)
{
xbt_assert( from_ == nullptr );
from_ = from;
-
hosts_.push_back
(from);
+
add_host
(from);
return *this;
}
@@
-72,7
+72,7
@@
CommImpl& CommImpl::set_destination(s4u::Host* to)
{
xbt_assert( to_ == nullptr );
to_ = to;
-
hosts_.push_back
(to_);
+
add_host
(to_);
return *this;
}