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
Remove explicit conversion to std::string when it's not required.
[simgrid.git]
/
src
/
mc
/
remote
/
RemoteProcess.cpp
diff --git
a/src/mc/remote/RemoteProcess.cpp
b/src/mc/remote/RemoteProcess.cpp
index
75a610d
..
121341a
100644
(file)
--- a/
src/mc/remote/RemoteProcess.cpp
+++ b/
src/mc/remote/RemoteProcess.cpp
@@
-317,7
+317,7
@@
std::string RemoteProcess::read_string(RemotePtr<char> address) const
xbt_assert(c > 0, "Could not read string from remote process");
if (memchr(res.data() + off, '\0', c))
- return
std::string(res.data()
);
+ return
res.data(
);
off += c;
if (off == (off_t)res.size())