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
/
s4u
/
s4u_Netzone.cpp
diff --git
a/src/s4u/s4u_Netzone.cpp
b/src/s4u/s4u_Netzone.cpp
index
c9dc1bd
..
cc6071c
100644
(file)
--- a/
src/s4u/s4u_Netzone.cpp
+++ b/
src/s4u/s4u_Netzone.cpp
@@
-33,11
+33,11
@@
std::unordered_map<std::string, std::string>* NetZone::get_properties()
}
/** Retrieve the property value (or nullptr if not set) */
}
/** Retrieve the property value (or nullptr if not set) */
-const char* NetZone::get_property(
const char*
key)
+const char* NetZone::get_property(
std::string
key)
{
return properties_.at(key).c_str();
}
{
return properties_.at(key).c_str();
}
-void NetZone::set_property(
const char* key, const char*
value)
+void NetZone::set_property(
std::string key, std::string
value)
{
simgrid::simix::simcall([this, key, value] { properties_[key] = value; });
}
{
simgrid::simix::simcall([this, key, value] { properties_[key] = value; });
}