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
/
app-chainsend
/
s4u-app-chainsend.cpp
diff --git
a/examples/s4u/app-chainsend/s4u-app-chainsend.cpp
b/examples/s4u/app-chainsend/s4u-app-chainsend.cpp
index
6da10d6
..
ffce1cd
100644
(file)
--- a/
examples/s4u/app-chainsend/s4u-app-chainsend.cpp
+++ b/
examples/s4u/app-chainsend/s4u-app-chainsend.cpp
@@
-47,7
+47,7
@@
public:
void joinChain()
{
void joinChain()
{
- const
ChainMessage* msg
= static_cast<ChainMessage*>(me->get());
+ const
auto* msg
= static_cast<ChainMessage*>(me->get());
prev = msg->prev_;
next = msg->next_;
total_pieces = msg->num_pieces;
prev = msg->prev_;
next = msg->next_;
total_pieces = msg->num_pieces;
@@
-139,7
+139,7
@@
static void peer()
{
XBT_DEBUG("peer");
{
XBT_DEBUG("peer");
-
Peer
* p = new Peer();
+
auto
* p = new Peer();
double start_time = simgrid::s4u::Engine::get_clock();
p->joinChain();
double start_time = simgrid::s4u::Engine::get_clock();
p->joinChain();
@@
-158,7
+158,7
@@
static void broadcaster(int hostcount, unsigned int piece_count)
{
XBT_DEBUG("broadcaster");
{
XBT_DEBUG("broadcaster");
-
Broadcaster
* bc = new Broadcaster(hostcount, piece_count);
+
auto
* bc = new Broadcaster(hostcount, piece_count);
bc->buildChain();
bc->sendFile();
bc->buildChain();
bc->sendFile();