Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pointer-to-const for sonar.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 14 Mar 2021 15:42:33 +0000 (16:42 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 14 Mar 2021 22:02:55 +0000 (23:02 +0100)
src/kernel/activity/ConditionVariableImpl.cpp

index bb15f64..87683e1 100644 (file)
@@ -50,7 +50,7 @@ void ConditionVariableImpl::signal()
       simcall_mutex = simcall_cond_wait_timeout__get__mutex(simcall);
     else {
       // FIXME? using here the MC observer to solve a problem not related to MC
-      auto* observer = dynamic_cast<mc::ConditionWaitSimcall*>(simcall->observer_);
+      const auto* observer = dynamic_cast<mc::ConditionWaitSimcall*>(simcall->observer_);
       xbt_assert(observer != nullptr);
       simcall_mutex = observer->get_mutex();
     }