mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
clang-tidy: Use override keyword
run-clang-tidy -header-filter='.*' -checks='-*,modernize-use-override' -fix
This commit is contained in:
@ -34,9 +34,9 @@ using namespace TagLib;
|
||||
class PlainFile : public File {
|
||||
public:
|
||||
explicit PlainFile(FileName name) : File(name) { }
|
||||
Tag *tag() const { return NULL; }
|
||||
AudioProperties *audioProperties() const { return NULL; }
|
||||
bool save() { return false; }
|
||||
Tag *tag() const override { return NULL; }
|
||||
AudioProperties *audioProperties() const override { return NULL; }
|
||||
bool save() override { return false; }
|
||||
void truncate(long length) { File::truncate(length); }
|
||||
|
||||
ByteVector readAll() {
|
||||
|
@ -55,7 +55,7 @@ namespace
|
||||
class DummyResolver : public FileRef::FileTypeResolver
|
||||
{
|
||||
public:
|
||||
virtual File *createFile(FileName fileName, bool, AudioProperties::ReadStyle) const
|
||||
File *createFile(FileName fileName, bool, AudioProperties::ReadStyle) const override
|
||||
{
|
||||
return new Ogg::Vorbis::File(fileName);
|
||||
}
|
||||
@ -64,12 +64,12 @@ namespace
|
||||
class DummyStreamResolver : public FileRef::StreamTypeResolver
|
||||
{
|
||||
public:
|
||||
virtual File *createFile(FileName, bool, AudioProperties::ReadStyle) const
|
||||
File *createFile(FileName, bool, AudioProperties::ReadStyle) const override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual File *createFileFromStream(IOStream *s, bool, AudioProperties::ReadStyle) const
|
||||
File *createFileFromStream(IOStream *s, bool, AudioProperties::ReadStyle) const override
|
||||
{
|
||||
return new MP4::File(s);
|
||||
}
|
||||
|
@ -62,9 +62,9 @@ class PublicFrame : public ID3v2::Frame
|
||||
String readStringField(const ByteVector &data, String::Type encoding,
|
||||
int *position = 0)
|
||||
{ return ID3v2::Frame::readStringField(data, encoding, position); }
|
||||
virtual String toString() const { return String(); }
|
||||
virtual void parseFields(const ByteVector &) {}
|
||||
virtual ByteVector renderFields() const { return ByteVector(); }
|
||||
String toString() const override { return String(); }
|
||||
void parseFields(const ByteVector &) override {}
|
||||
ByteVector renderFields() const override { return ByteVector(); }
|
||||
};
|
||||
|
||||
class TestID3v2 : public CppUnit::TestFixture
|
||||
|
@ -51,9 +51,9 @@ public:
|
||||
void setChunkData(const ByteVector &name, const ByteVector &data) {
|
||||
RIFF::File::setChunkData(name, data);
|
||||
};
|
||||
virtual TagLib::Tag* tag() const { return 0; };
|
||||
virtual TagLib::AudioProperties* audioProperties() const { return 0;};
|
||||
virtual bool save() { return false; };
|
||||
TagLib::Tag* tag() const override { return 0; };
|
||||
TagLib::AudioProperties* audioProperties() const override { return 0;};
|
||||
bool save() override { return false; };
|
||||
void removeChunk(unsigned int i) { RIFF::File::removeChunk(i); }
|
||||
void removeChunk(const ByteVector &name) { RIFF::File::removeChunk(name); }
|
||||
};
|
||||
|
Reference in New Issue
Block a user