Lint + clazy

pull/1541/head
NepNep21 1 year ago
parent 4eaba191de
commit 44cf096111
No known key found for this signature in database
GPG Key ID: 818E86B41BD5C364
  1. 2
      src/timeline/TimelineModel.cpp
  2. 4
      src/timeline/TimelineViewManager.cpp
  3. 5
      src/timeline/TimelineViewManager.h

@ -2115,7 +2115,7 @@ TimelineModel::handleIgnoredUser(const QString &id, const std::optional<QString>
{
if (err) {
MainWindow::instance()->showNotification(
tr("Failed to ignore \"%1\": %2").arg(id).arg(*err));
tr("Failed to ignore \"%1\": %2").arg(id, *err));
} else {
this->clearTimeline();
}

@ -565,7 +565,9 @@ TimelineViewManager::fixImageRendering(QQuickTextDocument *t, QQuickItem *i)
using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>;
static QVector<QString> convertIgnoredToQt(const IgnoredUsers &ev) {
static QVector<QString>
convertIgnoredToQt(const IgnoredUsers &ev)
{
QVector<QString> users;
for (const mtx::events::account_data::IgnoredUser &user : ev.content.users) {
users.push_back(QString::fromStdString(user.id));

@ -63,10 +63,7 @@ public:
return instance_;
}
static TimelineViewManager *instance()
{
return TimelineViewManager::instance_;
}
static TimelineViewManager *instance() { return TimelineViewManager::instance_; }
QVector<QString> getIgnoredUsers();

Loading…
Cancel
Save