Fix newer clang format versions

This commit is contained in:
Nicolas Werner 2026-02-08 19:35:46 +01:00
parent 3a707a5ee5
commit c17734c7a0
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
4 changed files with 5 additions and 4 deletions

View file

@ -13,6 +13,8 @@ KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Right PointerAlignment: Right
Cpp11BracedListStyle: true Cpp11BracedListStyle: true
PenaltyReturnTypeOnItsOwnLine: 0 PenaltyReturnTypeOnItsOwnLine: 0
StatementAttributeLikeMacros:
- emit
--- ---
BasedOnStyle: WebKit BasedOnStyle: WebKit
Language: ObjC Language: ObjC

View file

@ -108,9 +108,9 @@ TrayIcon::TrayIcon(const QString &filename, QWindow *parent)
setContextMenu(menu); setContextMenu(menu);
toggleAction_ = new QAction(tr("Show"), this); toggleAction_ = new QAction(tr("Show"), this);
quitAction_ = new QAction(tr("Quit"), this); quitAction_ = new QAction(tr("Quit"), this);
connect(toggleAction_, &QAction::triggered, parent, [=, this](){ connect(toggleAction_, &QAction::triggered, parent, [=, this]() {
if (parent->isVisible()) { if (parent->isVisible()) {
parent->hide(); parent->hide();
toggleAction_->setText(tr("Show")); toggleAction_->setText(tr("Show"));

View file

@ -1137,7 +1137,6 @@ TimelineModel::syncState(const mtx::responses::State &s)
avatarChanged = true; avatarChanged = true;
nameChanged = true; nameChanged = true;
memberCountChanged = true; memberCountChanged = true;
} else if (std::holds_alternative<StateEvent<state::Encryption>>(e)) { } else if (std::holds_alternative<StateEvent<state::Encryption>>(e)) {
this->isEncrypted_ = cache::isRoomEncrypted(room_id_.toStdString()); this->isEncrypted_ = cache::isRoomEncrypted(room_id_.toStdString());
emit encryptionChanged(); emit encryptionChanged();

View file

@ -28,7 +28,7 @@ EventExpiry::load()
if (auto temp = cache::client()->getAccountData(mtx::events::EventType::NhekoEventExpiry, if (auto temp = cache::client()->getAccountData(mtx::events::EventType::NhekoEventExpiry,
roomid_.toStdString())) { roomid_.toStdString())) {
auto h = std::get<mtx::events::AccountDataEvent< auto h = std::get<mtx::events::AccountDataEvent<
mtx::events::account_data::nheko_extensions::EventExpiry>>(*temp); mtx::events::account_data::nheko_extensions::EventExpiry>>(*temp);
this->event = std::move(h.content); this->event = std::move(h.content);
} }
} }