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
Replace redundant type with "auto" (Sonar).
[simgrid.git]
/
src
/
mc
/
api
/
strategy
/
MaxMatchComm.hpp
diff --git
a/src/mc/api/strategy/MaxMatchComm.hpp
b/src/mc/api/strategy/MaxMatchComm.hpp
index
7ec0af9
..
ec279d0
100644
(file)
--- a/
src/mc/api/strategy/MaxMatchComm.hpp
+++ b/
src/mc/api/strategy/MaxMatchComm.hpp
@@
-25,7
+25,7
@@
class MaxMatchComm : public Strategy {
public:
void copy_from(const Strategy* strategy) override
{
public:
void copy_from(const Strategy* strategy) override
{
- const
MaxMatchComm
* cast_strategy = dynamic_cast<MaxMatchComm const*>(strategy);
+ const
auto
* cast_strategy = dynamic_cast<MaxMatchComm const*>(strategy);
xbt_assert(cast_strategy != nullptr);
for (auto& [id, val] : cast_strategy->mailbox_)
mailbox_[id] = val;
xbt_assert(cast_strategy != nullptr);
for (auto& [id, val] : cast_strategy->mailbox_)
mailbox_[id] = val;