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
Pass std::string parameters by reference too.
[simgrid.git]
/
src
/
s4u
/
s4u_Netzone.cpp
diff --git
a/src/s4u/s4u_Netzone.cpp
b/src/s4u/s4u_Netzone.cpp
index
f31917b
..
0e3443d
100644
(file)
--- a/
src/s4u/s4u_Netzone.cpp
+++ b/
src/s4u/s4u_Netzone.cpp
@@
-37,9
+37,9
@@
const char* NetZone::get_property(const std::string& key)
{
return properties_.at(key).c_str();
}
-void NetZone::set_property(const std::string& key,
std::string
value)
+void NetZone::set_property(const std::string& key,
const std::string&
value)
{
- simgrid::simix::simcall([this,
key, value] { properties_[key] = std::move(value)
; });
+ simgrid::simix::simcall([this,
&key, &value] { properties_[key] = value
; });
}
/** @brief Returns the list of direct children (no grand-children) */