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" (include/ and src/).
[simgrid.git]
/
src
/
kernel
/
context
/
Context.hpp
diff --git
a/src/kernel/context/Context.hpp
b/src/kernel/context/Context.hpp
index
7dc6420
..
be67dd6
100644
(file)
--- a/
src/kernel/context/Context.hpp
+++ b/
src/kernel/context/Context.hpp
@@
-34,7
+34,7
@@
public:
protected:
template <class T, class... Args> T* new_context(Args&&... args)
{
-
T
* context = new T(std::forward<Args>(args)...);
+
auto
* context = new T(std::forward<Args>(args)...);
context->declare_context(sizeof(T));
return context;
}