aboutsummaryrefslogtreecommitdiff
path: root/lib/accountregistry.cpp
diff options
context:
space:
mode:
authorTobias Fella <9750016+TobiasFella@users.noreply.github.com>2022-05-29 11:52:04 +0200
committerGitHub <noreply@github.com>2022-05-29 11:52:04 +0200
commitbbc203f267961469251a3e04045b455480f4daa4 (patch)
tree199a5a950fb2157ffae58f29557e0ab56d150b66 /lib/accountregistry.cpp
parent946cd4cb73f95526aa09777afc2a493610d9696d (diff)
downloadlibquotient-bbc203f267961469251a3e04045b455480f4daa4.tar.gz
libquotient-bbc203f267961469251a3e04045b455480f4daa4.zip
Apply suggestions from code review
Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
Diffstat (limited to 'lib/accountregistry.cpp')
-rw-r--r--lib/accountregistry.cpp6
1 files changed, 3 insertions, 3 deletions
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());