From 3c5b126c67c34976e3b496454f34496ab99662c3 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Mon, 5 May 2025 23:24:01 -0500 Subject: [PATCH] Adding const to locks in AlertProxyModel --- scwx-qt/source/scwx/qt/model/alert_proxy_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scwx-qt/source/scwx/qt/model/alert_proxy_model.cpp b/scwx-qt/source/scwx/qt/model/alert_proxy_model.cpp index fd5ffc69..4dfeca41 100644 --- a/scwx-qt/source/scwx/qt/model/alert_proxy_model.cpp +++ b/scwx-qt/source/scwx/qt/model/alert_proxy_model.cpp @@ -90,7 +90,7 @@ AlertProxyModel::Impl::~Impl() { try { - std::unique_lock lock(alertMutex_); + const std::unique_lock lock(alertMutex_); alertUpdateTimer_.cancel(); } catch (const std::exception& ex) @@ -104,7 +104,7 @@ void AlertProxyModel::Impl::UpdateAlerts() logger_->trace("UpdateAlerts"); // Take a unique lock before modifying feature lists - std::unique_lock lock(alertMutex_); + const std::unique_lock lock(alertMutex_); // Re-evaluate for expired alerts if (alertActiveFilterEnabled_)