Fix various clazy warnings

This commit is contained in:
Jonas Kvinge
2021-03-21 04:47:11 +01:00
parent 20c1c1d4be
commit 78588d8cdf
92 changed files with 337 additions and 234 deletions

View File

@@ -38,10 +38,12 @@ CoverSearchStatistics &CoverSearchStatistics::operator +=(const CoverSearchStati
network_requests_made_ += other.network_requests_made_;
bytes_transferred_ += other.bytes_transferred_;
for (const QString &key : other.chosen_images_by_provider_.keys()) {
QStringList keys = other.chosen_images_by_provider_.keys();
for (const QString &key : keys) {
chosen_images_by_provider_[key] += other.chosen_images_by_provider_[key];
}
for (const QString &key : other.total_images_by_provider_.keys()) {
keys = other.total_images_by_provider_.keys();
for (const QString &key : keys) {
total_images_by_provider_[key] += other.total_images_by_provider_[key];
}