Clang-Tidy and Clazy fixes

This commit is contained in:
Jonas Kvinge
2021-06-20 19:04:08 +02:00
parent 755abec636
commit 1295033fae
374 changed files with 1304 additions and 900 deletions

View File

@@ -212,9 +212,9 @@ void SubsonicService::SendPingWithCredentials(QUrl url, const QString &username,
}
void SubsonicService::HandlePingSSLErrors(QList<QSslError> ssl_errors) {
void SubsonicService::HandlePingSSLErrors(const QList<QSslError> &ssl_errors) {
for (QSslError &ssl_error : ssl_errors) {
for (const QSslError &ssl_error : ssl_errors) {
errors_ += ssl_error.errorString();
}
@@ -387,7 +387,7 @@ void SubsonicService::CheckConfiguration() {
}
void SubsonicService::Scrobble(const QString &song_id, const bool submission, const QDateTime time) {
void SubsonicService::Scrobble(const QString &song_id, const bool submission, const QDateTime &time) {
if (!server_url().isValid() || username().isEmpty() || password().isEmpty()) {
return;