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
/
xbt
/
memory_map.cpp
diff --git
a/src/xbt/memory_map.cpp
b/src/xbt/memory_map.cpp
index
90e5c5f
..
ceaf8d8
100644
(file)
--- a/
src/xbt/memory_map.cpp
+++ b/
src/xbt/memory_map.cpp
@@
-202,7
+202,7
@@
std::vector<VmMap> get_memory_map(pid_t pid)
#elif defined __linux__
/* Open the actual process's proc maps file and create the memory_map_t */
/* to be returned. */
#elif defined __linux__
/* Open the actual process's proc maps file and create the memory_map_t */
/* to be returned. */
- std::string path =
std::string("/proc/")
+ std::to_string(pid) + "/maps";
+ std::string path =
"/proc/"
+ std::to_string(pid) + "/maps";
std::ifstream fp;
fp.rdbuf()->pubsetbuf(nullptr, 0);
fp.open(path);
std::ifstream fp;
fp.rdbuf()->pubsetbuf(nullptr, 0);
fp.open(path);