From 0c59a0d4d27952ce2f8cc3616b473cf278b37ef3 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 4 May 2025 23:09:57 -0500 Subject: [PATCH] Alert model clang-tidy cleanupp --- scwx-qt/source/scwx/qt/model/alert_model.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/scwx-qt/source/scwx/qt/model/alert_model.cpp b/scwx-qt/source/scwx/qt/model/alert_model.cpp index 9baaf211..a41a033f 100644 --- a/scwx-qt/source/scwx/qt/model/alert_model.cpp +++ b/scwx-qt/source/scwx/qt/model/alert_model.cpp @@ -10,16 +10,10 @@ #include #include -#include - #include #include -namespace scwx -{ -namespace qt -{ -namespace model +namespace scwx::qt::model { static const std::string logPrefix_ = "scwx::qt::model::alert_model"; @@ -407,7 +401,8 @@ void AlertModel::HandleAlertsRemoved( p->textEventKeys_.begin(), p->textEventKeys_.end(), alertKey); if (it != p->textEventKeys_.end()) { - int row = std::distance(p->textEventKeys_.begin(), it); + const int row = + static_cast(std::distance(p->textEventKeys_.begin(), it)); beginRemoveRows(QModelIndex(), row, row); p->textEventKeys_.erase(it); endRemoveRows(); @@ -597,6 +592,4 @@ std::string AlertModelImpl::GetEndTimeString(const types::TextEventKey& key) return scwx::util::TimeString(GetEndTime(key)); } -} // namespace model -} // namespace qt -} // namespace scwx +} // namespace scwx::qt::model