From 29846dce9607816c7e06b2c8108e95e182088e5e Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 14 Mar 2021 16:42:33 +0100 Subject: [PATCH] Pointer-to-const for sonar. --- src/kernel/activity/ConditionVariableImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/activity/ConditionVariableImpl.cpp b/src/kernel/activity/ConditionVariableImpl.cpp index bb15f64a3a..87683e1009 100644 --- a/src/kernel/activity/ConditionVariableImpl.cpp +++ b/src/kernel/activity/ConditionVariableImpl.cpp @@ -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(simcall->observer_); + const auto* observer = dynamic_cast(simcall->observer_); xbt_assert(observer != nullptr); simcall_mutex = observer->get_mutex(); } -- 2.20.1