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
Don't build useless temporary object (sonar, c++17).
[simgrid.git]
/
src
/
instr
/
instr_paje_types.cpp
diff --git
a/src/instr/instr_paje_types.cpp
b/src/instr/instr_paje_types.cpp
index
600e6e3
..
7defa58
100644
(file)
--- a/
src/instr/instr_paje_types.cpp
+++ b/
src/instr/instr_paje_types.cpp
@@
-137,7
+137,7
@@
void ValueType::add_entity_value(const std::string& name, const std::string& col
auto it = values_.find(name);
if (it == values_.end()) {
XBT_DEBUG("new value %s, child of %s", name.c_str(), get_cname());
- values_.
emplace(name, EntityValue(name, color, this)
);
+ values_.
try_emplace(name, name, color, this
);
}
}