Use override

This commit is contained in:
Jonas Kvinge
2020-06-15 21:55:05 +02:00
parent 72ede666d4
commit 651020388d
271 changed files with 1199 additions and 1231 deletions

View File

@@ -43,7 +43,7 @@ class AcoustidClient : public QObject {
public:
explicit AcoustidClient(QObject *parent = nullptr);
~AcoustidClient();
~AcoustidClient() override;
// Network requests will be aborted after this interval.
void SetTimeout(const int msec);

View File

@@ -55,8 +55,6 @@ Chromaprinter::Chromaprinter(const QString &filename)
: filename_(filename),
convert_element_(nullptr) {}
Chromaprinter::~Chromaprinter() {}
GstElement *Chromaprinter::CreateElement(const QString &factory_name, GstElement *bin) {
GstElement *ret = gst_element_factory_make( factory_name.toLatin1().constData(), factory_name.toLatin1().constData());

View File

@@ -39,7 +39,6 @@ class Chromaprinter {
public:
explicit Chromaprinter(const QString &filename);
~Chromaprinter();
// Creates a fingerprint from the song.
// This method is blocking, so you want to call it in another thread.

View File

@@ -51,7 +51,7 @@ class MusicBrainzClient : public QObject {
// The second argument allows for specifying a custom network access manager.
// It is used in tests. The ownership of network is not transferred.
explicit MusicBrainzClient(QObject *parent = nullptr, QNetworkAccessManager *network = nullptr);
~MusicBrainzClient();
~MusicBrainzClient() override;
struct Result {
Result() : duration_msec_(0), track_(0), year_(-1) {}