1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 22:38:33 +01:00

Replace virtual with better fitting override

This commit is contained in:
Uwe L. Korn 2014-11-06 13:32:29 +01:00
parent f35f5d5af0
commit 2b2a770be0
6 changed files with 18 additions and 18 deletions

View File

@ -30,9 +30,9 @@ class DLLEXPORT APETag : public Tag
public: public:
APETag( TagLib::Tag *, TagLib::APE::Tag * ); APETag( TagLib::Tag *, TagLib::APE::Tag * );
virtual QString albumArtist() const { return m_albumArtist; } QString albumArtist() const override { return m_albumArtist; }
virtual QString composer() const { return m_composer; } QString composer() const override { return m_composer; }
virtual unsigned int discNumber() const { return m_discNumber; } unsigned int discNumber() const override { return m_discNumber; }
private: private:
TagLib::APE::Tag *m_apeTag; TagLib::APE::Tag *m_apeTag;

View File

@ -30,9 +30,9 @@ class DLLEXPORT ASFTag : public Tag
public: public:
ASFTag( TagLib::Tag *, TagLib::ASF::Tag * ); ASFTag( TagLib::Tag *, TagLib::ASF::Tag * );
virtual QString albumArtist() const { return m_albumArtist; } QString albumArtist() const override { return m_albumArtist; }
virtual QString composer() const { return m_composer; } QString composer() const override { return m_composer; }
virtual unsigned int discNumber() const { return m_discNumber; } unsigned int discNumber() const override { return m_discNumber; }
private: private:
TagLib::ASF::Tag *m_asfTag; TagLib::ASF::Tag *m_asfTag;

View File

@ -30,9 +30,9 @@ class DLLEXPORT ID3v1Tag : public Tag
public: public:
ID3v1Tag( TagLib::Tag * ); ID3v1Tag( TagLib::Tag * );
virtual QString albumArtist() const { return QString(); } QString albumArtist() const override { return QString(); }
virtual QString composer() const { return QString(); } QString composer() const override { return QString(); }
virtual unsigned int discNumber() const { return 0; } unsigned int discNumber() const override { return 0; }
}; };
} }

View File

@ -30,9 +30,9 @@ class DLLEXPORT ID3v2Tag : public Tag
public: public:
ID3v2Tag( TagLib::Tag *, TagLib::ID3v2::Tag * ); ID3v2Tag( TagLib::Tag *, TagLib::ID3v2::Tag * );
virtual QString albumArtist() const { return m_albumArtist; } QString albumArtist() const override { return m_albumArtist; }
virtual QString composer() const { return m_composer; } QString composer() const override { return m_composer; }
virtual unsigned int discNumber() const { return m_discNumber; } unsigned int discNumber() const override { return m_discNumber; }
private: private:
TagLib::ID3v2::Tag *m_id3v2Tag; TagLib::ID3v2::Tag *m_id3v2Tag;

View File

@ -30,9 +30,9 @@ class DLLEXPORT MP4Tag : public Tag
public: public:
MP4Tag( TagLib::Tag *, TagLib::MP4::Tag * ); MP4Tag( TagLib::Tag *, TagLib::MP4::Tag * );
virtual QString albumArtist() const { return m_albumArtist; } QString albumArtist() const override { return m_albumArtist; }
virtual QString composer() const { return m_composer; } QString composer() const override { return m_composer; }
virtual unsigned int discNumber() const { return m_discNumber; } unsigned int discNumber() const override { return m_discNumber; }
private: private:
TagLib::MP4::Tag *m_mp4Tag; TagLib::MP4::Tag *m_mp4Tag;

View File

@ -30,9 +30,9 @@ class DLLEXPORT OggTag : public Tag
public: public:
OggTag( TagLib::Tag *, TagLib::Ogg::XiphComment * ); OggTag( TagLib::Tag *, TagLib::Ogg::XiphComment * );
virtual QString albumArtist() const { return m_albumArtist; } QString albumArtist() const override { return m_albumArtist; }
virtual QString composer() const { return m_composer; } QString composer() const override { return m_composer; }
virtual unsigned int discNumber() const { return m_discNumber; } unsigned int discNumber() const override { return m_discNumber; }
private: private:
TagLib::Ogg::XiphComment *m_xiphComment; TagLib::Ogg::XiphComment *m_xiphComment;