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
hopefully fix most issues. thx agier for spotting the main one
[simgrid.git]
/
src
/
s4u
/
s4u_Storage.cpp
diff --git
a/src/s4u/s4u_Storage.cpp
b/src/s4u/s4u_Storage.cpp
index
8d0636b
..
78cfaf6
100644
(file)
--- a/
src/s4u/s4u_Storage.cpp
+++ b/
src/s4u/s4u_Storage.cpp
@@
-26,12
+26,12
@@
Storage::Storage(std::string name, surf::StorageImpl* pimpl) : pimpl_(pimpl), na
simgrid::s4u::Engine::get_instance()->storage_register(name_, this);
}
simgrid::s4u::Engine::get_instance()->storage_register(name_, this);
}
-Storage* Storage::by_name(
std::string
name)
+Storage* Storage::by_name(
const std::string&
name)
{
return Engine::get_instance()->storage_by_name(name);
}
{
return Engine::get_instance()->storage_by_name(name);
}
-Storage* Storage::by_name_or_null(
std::string
name)
+Storage* Storage::by_name_or_null(
const std::string&
name)
{
return Engine::get_instance()->storage_by_name_or_null(name);
}
{
return Engine::get_instance()->storage_by_name_or_null(name);
}
@@
-46,12
+46,12
@@
std::unordered_map<std::string, std::string>* Storage::get_properties()
return simgrid::simix::simcall([this] { return pimpl_->get_properties(); });
}
return simgrid::simix::simcall([this] { return pimpl_->get_properties(); });
}
-const char* Storage::get_property(
std::string
key)
+const char* Storage::get_property(
const std::string&
key)
{
return this->pimpl_->get_property(key);
}
{
return this->pimpl_->get_property(key);
}
-void Storage::set_property(
std::string
key, std::string value)
+void Storage::set_property(
const std::string&
key, std::string value)
{
simgrid::simix::simcall([this, key, value] { this->pimpl_->set_property(key, value); });
}
{
simgrid::simix::simcall([this, key, value] { this->pimpl_->set_property(key, value); });
}