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
Use structured binding declarations (sonar, c++17).
[simgrid.git]
/
src
/
kernel
/
resource
/
profile
/
Profile.cpp
diff --git
a/src/kernel/resource/profile/Profile.cpp
b/src/kernel/resource/profile/Profile.cpp
index
dfb68d1
..
bc45ead
100644
(file)
--- a/
src/kernel/resource/profile/Profile.cpp
+++ b/
src/kernel/resource/profile/Profile.cpp
@@
-81,8
+81,8
@@
Profile::Profile(const std::string& name, const std::function<ProfileBuilder::Up
void tmgr_finalize()
{
- for (auto const&
kv
: trace_list)
- delete
kv.second
;
+ for (auto const&
[_, trace]
: trace_list)
+ delete
trace
;
trace_list.clear();
}