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
Whenever possible, use std::move() for parameters (mostly std::string).
[simgrid.git]
/
src
/
instr
/
jedule
/
jedule_platform.cpp
diff --git
a/src/instr/jedule/jedule_platform.cpp
b/src/instr/jedule/jedule_platform.cpp
index
e331627
..
ad4e515
100644
(file)
--- a/
src/instr/jedule/jedule_platform.cpp
+++ b/
src/instr/jedule/jedule_platform.cpp
@@
-24,8
+24,7
@@
Subset::Subset(int start_idx, int end_idx, Container* parent)
nres=end_idx-start_idx+1;
}
-
-Container::Container(std::string name): name(name)
+Container::Container(std::string name) : name(std::move(name))
{
container_name2container.insert({this->name, this});
}