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
Polish passage of std::string parameters.
[simgrid.git]
/
src
/
instr
/
instr_paje_containers.cpp
diff --git
a/src/instr/instr_paje_containers.cpp
b/src/instr/instr_paje_containers.cpp
index
a6f8e68
..
17bff97
100644
(file)
--- a/
src/instr/instr_paje_containers.cpp
+++ b/
src/instr/instr_paje_containers.cpp
@@
-70,7
+70,7
@@
HostContainer::HostContainer(simgrid::s4u::Host& host, NetZoneContainer* father)
trivaNodeTypes.insert(type_->get_name());
}
trivaNodeTypes.insert(type_->get_name());
}
-Container::Container(std::string name,
std::string
type_name, Container* father)
+Container::Container(std::string name,
const std::string&
type_name, Container* father)
: name_(std::move(name)), father_(father)
{
static long long int container_id = 0;
: name_(std::move(name)), father_(father)
{
static long long int container_id = 0;
@@
-117,9
+117,9
@@
Container::~Container()
allContainers.erase(name_);
}
allContainers.erase(name_);
}
-void Container::create_child(std::string name,
std::string
type_name)
+void Container::create_child(std::string name,
const std::string&
type_name)
{
{
- new Container(std::move(name),
std::move(type_name)
, this);
+ new Container(std::move(name),
type_name
, this);
}
Container* Container::by_name_or_null(const std::string& name)
}
Container* Container::by_name_or_null(const std::string& name)