From bbc203f267961469251a3e04045b455480f4daa4 Mon Sep 17 00:00:00 2001 From: Tobias Fella <9750016+TobiasFella@users.noreply.github.com> Date: Sun, 29 May 2022 11:52:04 +0200 Subject: Apply suggestions from code review Co-authored-by: Alexey Rusakov --- lib/accountregistry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/accountregistry.cpp b/lib/accountregistry.cpp index 9b6114d9..91f2e9d7 100644 --- a/lib/accountregistry.cpp +++ b/lib/accountregistry.cpp @@ -21,7 +21,7 @@ void AccountRegistry::add(Connection* a) beginInsertRows(QModelIndex(), size(), size()); push_back(a); endInsertRows(); - Q_EMIT accountCountChanged(); + emit accountCountChanged(); } void AccountRegistry::drop(Connection* a) @@ -76,7 +76,7 @@ QKeychain::ReadPasswordJob* AccountRegistry::loadAccessTokenFromKeychain(const Q auto job = new QKeychain::ReadPasswordJob(qAppName(), this); job->setKey(userId); - connect(job, &QKeychain::Job::finished, this, [job]() { + connect(job, &QKeychain::Job::finished, this, [job] { if (job->error() == QKeychain::Error::NoError) { return; } @@ -93,7 +93,7 @@ void AccountRegistry::invokeLogin() for (const auto& accountId : accounts) { AccountSettings account{accountId}; m_accountsLoading += accountId; - Q_EMIT accountsLoadingChanged(); + emit accountsLoadingChanged(); if (!account.homeserver().isEmpty()) { auto accessTokenLoadingJob = loadAccessTokenFromKeychain(account.userId()); -- cgit v1.2.3