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
/
inspect
/
mc_dwarf.cpp
diff --git
a/src/mc/inspect/mc_dwarf.cpp
b/src/mc/inspect/mc_dwarf.cpp
index
44ad73e
..
7b0c0f5
100644
(file)
--- a/
src/mc/inspect/mc_dwarf.cpp
+++ b/
src/mc/inspect/mc_dwarf.cpp
@@
-510,7
+510,7
@@
static simgrid::mc::Type MC_dwarf_die_to_type(simgrid::mc::ObjectInformation* in
{
simgrid::mc::Type type;
type.type = dwarf_tag(die);
- type.name =
std::string()
;
+ type.name =
""
;
type.element_count = -1;
// Global Offset
@@
-677,7
+677,7
@@
static std::unique_ptr<simgrid::mc::Variable> MC_die_to_variable(simgrid::mc::Ob
}
if (ns && variable->global)
- variable->name
= std::string(ns) + "::" + variable->name
;
+ variable->name
.insert(0, std::string(ns) + "::")
;
// The current code needs a variable name,
// generate a fake one: