mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:40:05 +00:00
Alert model clang-tidy cleanupp
This commit is contained in:
parent
f40c24ce6f
commit
0c59a0d4d2
1 changed files with 4 additions and 11 deletions
|
|
@ -10,16 +10,10 @@
|
||||||
#include <scwx/util/strings.hpp>
|
#include <scwx/util/strings.hpp>
|
||||||
#include <scwx/util/time.hpp>
|
#include <scwx/util/time.hpp>
|
||||||
|
|
||||||
#include <format>
|
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
|
|
||||||
namespace scwx
|
namespace scwx::qt::model
|
||||||
{
|
|
||||||
namespace qt
|
|
||||||
{
|
|
||||||
namespace model
|
|
||||||
{
|
{
|
||||||
|
|
||||||
static const std::string logPrefix_ = "scwx::qt::model::alert_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);
|
p->textEventKeys_.begin(), p->textEventKeys_.end(), alertKey);
|
||||||
if (it != p->textEventKeys_.end())
|
if (it != p->textEventKeys_.end())
|
||||||
{
|
{
|
||||||
int row = std::distance(p->textEventKeys_.begin(), it);
|
const int row =
|
||||||
|
static_cast<int>(std::distance(p->textEventKeys_.begin(), it));
|
||||||
beginRemoveRows(QModelIndex(), row, row);
|
beginRemoveRows(QModelIndex(), row, row);
|
||||||
p->textEventKeys_.erase(it);
|
p->textEventKeys_.erase(it);
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
@ -597,6 +592,4 @@ std::string AlertModelImpl::GetEndTimeString(const types::TextEventKey& key)
|
||||||
return scwx::util::TimeString(GetEndTime(key));
|
return scwx::util::TimeString(GetEndTime(key));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace model
|
} // namespace scwx::qt::model
|
||||||
} // namespace qt
|
|
||||||
} // namespace scwx
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue