Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix another sonar warning
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 23 Mar 2023 23:00:53 +0000 (00:00 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 24 Mar 2023 21:06:57 +0000 (22:06 +0100)
src/sthread/ObjectAccess.cpp

index d608dff..6e19b61 100644 (file)
@@ -52,7 +52,7 @@ struct ObjectOwner {
   simgrid::kernel::actor::ActorImpl* owner = nullptr;
   const char* file                         = nullptr;
   int line                                 = -1;
-  ObjectOwner(simgrid::kernel::actor::ActorImpl* o) : owner(o) {}
+  explicit ObjectOwner(simgrid::kernel::actor::ActorImpl* o) : owner(o) {}
 };
 
 std::unordered_map<void*, ObjectOwner*> owners;