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

@@ -19,6 +19,8 @@
#include "config.h"
#include <chrono>
#include <QtGlobal>
#include <QObject>
#include <QTimer>
@@ -28,6 +30,8 @@
#include "lyricsfetcher.h"
#include "lyricsfetchersearch.h"
using namespace std::chrono_literals;
const int LyricsFetcher::kMaxConcurrentRequests = 5;
LyricsFetcher::LyricsFetcher(LyricsProviders *lyrics_providers, QObject *parent)
@@ -36,7 +40,7 @@ LyricsFetcher::LyricsFetcher(LyricsProviders *lyrics_providers, QObject *parent)
next_id_(0),
request_starter_(new QTimer(this)) {
request_starter_->setInterval(500);
request_starter_->setInterval(500ms);
QObject::connect(request_starter_, &QTimer::timeout, this, &LyricsFetcher::StartRequests);
}