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
/
maestro-set
/
s4u-maestro-set.cpp
diff --git
a/examples/s4u/maestro-set/s4u-maestro-set.cpp
b/examples/s4u/maestro-set/s4u-maestro-set.cpp
index
00982ec
..
8188c9c
100644
(file)
--- a/
examples/s4u/maestro-set/s4u-maestro-set.cpp
+++ b/
examples/s4u/maestro-set/s4u-maestro-set.cpp
@@
-40,7
+40,7
@@
static void ensure_other_tid()
static void sender()
{
ensure_root_tid();
static void sender()
{
ensure_root_tid();
-
std::string
* payload = new std::string("some message");
+
auto
* payload = new std::string("some message");
simgrid::s4u::Mailbox::by_name("some mailbox")->put((void*)payload, 10e8);
}
simgrid::s4u::Mailbox::by_name("some mailbox")->put((void*)payload, 10e8);
}
@@
-48,7
+48,7
@@
static void receiver()
{
ensure_other_tid();
{
ensure_other_tid();
- const
std::string
* payload = static_cast<std::string*>(simgrid::s4u::Mailbox::by_name("some mailbox")->get());
+ const
auto
* payload = static_cast<std::string*>(simgrid::s4u::Mailbox::by_name("some mailbox")->get());
XBT_INFO("Task received");
delete payload;
}
XBT_INFO("Task received");
delete payload;
}