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
[sonar] Replace redundant type with "auto" (examples/).
[simgrid.git]
/
examples
/
s4u
/
energy-link
/
s4u-energy-link.cpp
diff --git
a/examples/s4u/energy-link/s4u-energy-link.cpp
b/examples/s4u/energy-link/s4u-energy-link.cpp
index
a44c445
..
ff0359f
100644
(file)
--- a/
examples/s4u/energy-link/s4u-energy-link.cpp
+++ b/
examples/s4u/energy-link/s4u-energy-link.cpp
@@
-52,7
+52,7
@@
static void receiver(std::vector<std::string> args)
void* res = mailbox->get();
xbt_free(res);
} else {
-
void** data
= new void*[flow_amount];
+
auto* data
= new void*[flow_amount];
// Start all comms in parallel, and wait for their completion in one shot
std::vector<simgrid::s4u::CommPtr> comms;