Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Replace redundant type with "auto" (include/ and src/).
[simgrid.git] / src / s4u / s4u_Mailbox.cpp
index 3a3c205..01cb3eb 100644 (file)
@@ -85,7 +85,7 @@ ActorPtr Mailbox::get_receiver() const
 
 CommPtr Mailbox::put_init()
 {
-  CommPtr res   = CommPtr(new Comm());
+  CommPtr res(new Comm());
   res->sender_  = kernel::actor::ActorImpl::self();
   res->mailbox_ = this;
   return res;
@@ -132,7 +132,7 @@ void Mailbox::put(void* payload, uint64_t simulated_size_in_bytes, double timeou
 
 CommPtr Mailbox::get_init()
 {
-  CommPtr res    = CommPtr(new Comm());
+  CommPtr res(new Comm());
   res->receiver_ = kernel::actor::ActorImpl::self();
   res->mailbox_  = this;
   return res;