Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar asks for an in-class initializer.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 11 Feb 2021 09:58:08 +0000 (10:58 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 11 Feb 2021 10:00:36 +0000 (11:00 +0100)
src/kernel/activity/CommImpl.cpp
src/kernel/activity/CommImpl.hpp

index d056c3b..cf007f6 100644 (file)
@@ -400,8 +400,7 @@ CommImpl& CommImpl::detach()
   return *this;
 }
 
-CommImpl::CommImpl(s4u::Host* from, s4u::Host* to, double bytes)
-    : size_(bytes), detached_(true), type_(Type::SEND), from_(from), to_(to)
+CommImpl::CommImpl(s4u::Host* from, s4u::Host* to, double bytes) : size_(bytes), detached_(true), from_(from), to_(to)
 {
   state_ = State::READY;
 }
index 39668cb..3fb4d8a 100644 (file)
@@ -51,7 +51,7 @@ public:
   void post() override;
   void finish() override;
 
-  const CommImpl::Type type_; /* Type of the communication (SEND or RECEIVE) */
+  const Type type_ = Type::SEND; /* Type of the communication (SEND or RECEIVE) */
 
 #if SIMGRID_HAVE_MC
   MailboxImpl* mbox_cpy = nullptr; /* Copy of the rendez-vous where the comm is queued, MC needs it for DPOR