Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix another sonar warning
[simgrid.git] / 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;