Skip to content

Commit

Permalink
Fix Sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Sep 20, 2024
1 parent d3e7c1b commit 1557a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Quotient/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void Connection::assumeIdentity(const QString& mxId, const QString& deviceId,
const QString& accessToken)
{
d->completeSetup(mxId, false, deviceId, accessToken);
d->ensureHomeserver(mxId).then([this, mxId, accessToken] {
d->ensureHomeserver(mxId).then([this, mxId] {
callApi<GetTokenOwnerJob>().onResult([this, mxId](const GetTokenOwnerJob* job) {
switch (job->error()) {
case BaseJob::Success:
Expand Down
2 changes: 1 addition & 1 deletion Quotient/connectiondata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void ConnectionData::setAccessToken(QByteArray token)
NetworkAccessManager::setAccessToken(d->userId, d->accessToken);
}

void ConnectionData::setToken(QByteArray token) { setAccessToken(std::move(token)); }
void ConnectionData::setToken(QByteArray accessToken) { setAccessToken(std::move(accessToken)); }

const QString& ConnectionData::deviceId() const { return d->deviceId; }

Expand Down

0 comments on commit 1557a1d

Please sign in to comment.