Clang-Tidy and Clazy fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user