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
/
surf
/
PropertyHolder.cpp
diff --git
a/src/surf/PropertyHolder.cpp
b/src/surf/PropertyHolder.cpp
index
53232e0
..
542ce0b
100644
(file)
--- a/
src/surf/PropertyHolder.cpp
+++ b/
src/surf/PropertyHolder.cpp
@@
-26,7
+26,7
@@
void PropertyHolder::set_property(std::string key, std::string value)
{
if (not properties_)
properties_ = new std::unordered_map<std::string, std::string>;
- (*properties_)[key] =
value
;
+ (*properties_)[key] =
std::move(value)
;
}
/** @brief Return the whole set of properties. Don't mess with it, dude! */