Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Use std::move with rvalue references.
[simgrid.git] / src / mc / mc_base.cpp
index 561215452195a0cf086f97279fad34b92efe946a..d3b1935d91c6a4cfef8771aed119161315468c92 100644 (file)
@@ -118,9 +118,9 @@ bool actor_is_enabled(smx_actor_t actor)
     case SIMCALL_MUTEX_LOCK: {
       const kernel::activity::MutexImpl* mutex = simcall_mutex_lock__get__mutex(req);
 
-      if (mutex->owner_ == nullptr)
+      if (mutex->get_owner() == nullptr)
         return true;
-      return mutex->owner_->get_pid() == req->issuer_->get_pid();
+      return mutex->get_owner()->get_pid() == req->issuer_->get_pid();
     }
 
     case SIMCALL_SEM_ACQUIRE: {