Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/NULL/nullptr/ in our C++ codebase
[simgrid.git] / src / simix / SynchroComm.hpp
index eca91c9..02c427d 100644 (file)
@@ -22,7 +22,7 @@ namespace simix {
   XBT_PUBLIC_CLASS Comm : public Synchro {
     ~Comm() override;
   public:
-    Comm(e_smx_comm_type_t type);
+    explicit Comm(e_smx_comm_type_t type);
     void suspend() override;
     void resume() override;
     void post() override;
@@ -35,7 +35,7 @@ namespace simix {
 
 #if HAVE_MC
     smx_mailbox_t mbox_cpy = nullptr; /* Copy of the rendez-vous where the comm is queued, MC needs it for DPOR
-                                       (comm.mbox set to NULL when the communication is removed from the mailbox
+                                       (comm.mbox set to nullptr when the communication is removed from the mailbox
                                        (used as garbage collector)) */
 #endif
     bool detached = false;          /* If detached or not */