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
[sonar] Use std::move with rvalue references.
[simgrid.git]
/
include
/
xbt
/
string.hpp
diff --git
a/include/xbt/string.hpp
b/include/xbt/string.hpp
index
0169240
..
a8f2020
100644
(file)
--- a/
include/xbt/string.hpp
+++ b/
include/xbt/string.hpp
@@
-91,8
+91,7
@@
public:
string(string const& s) : string(s.c_str(), s.size()) {}
string(string&& s)
{
- str.len = s.str.len;
- str.data = s.str.data;
+ str = std::move(s.str);
s.str.len = 0;
s.str.data = &NUL;
}