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
/
instr
/
instr_paje_containers.cpp
diff --git
a/src/instr/instr_paje_containers.cpp
b/src/instr/instr_paje_containers.cpp
index
f53a608
..
5001fc7
100644
(file)
--- a/
src/instr/instr_paje_containers.cpp
+++ b/
src/instr/instr_paje_containers.cpp
@@
-20,7
+20,7
@@
NetZoneContainer::NetZoneContainer(const std::string& name, unsigned int level,
{
xbt_assert(s4u::Engine::get_instance()->netpoint_by_name_or_null(get_name()), "Element '%s' not found", get_cname());
if (parent_) {
- std::string type_name =
std::string("L")
+ std::to_string(level);
+ std::string type_name =
"L"
+ std::to_string(level);
type_ = parent_->type_->by_name_or_create<ContainerType>(type_name);
parent_->children_.try_emplace(get_name(), this);
on_creation(*this);