clang-tidy: remove redundant initializations

Found with readability-redundant-member-init

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-06-16 18:24:05 -07:00 committed by Urs Fleisch
parent 17e299350a
commit b77e828d4b
16 changed files with 9 additions and 24 deletions

View File

@ -91,13 +91,11 @@ public:
////////////////////////////////////////////////////////////////////////////////
APE::Tag::Tag() :
TagLib::Tag(),
d(new TagPrivate())
{
}
APE::Tag::Tag(TagLib::File *file, long footerLocation) :
TagLib::Tag(),
d(new TagPrivate())
{
d->file = file;

View File

@ -40,7 +40,6 @@ public:
};
ASF::Tag::Tag() :
TagLib::Tag(),
d(new TagPrivate())
{
}

View File

@ -284,7 +284,6 @@ class FileRef::FileRefPrivate : public RefCounter
{
public:
FileRefPrivate() :
RefCounter(),
file(0),
stream(0) {}

View File

@ -37,7 +37,7 @@ class IT::File::FilePrivate
{
public:
FilePrivate(AudioProperties::ReadStyle propertiesStyle)
: tag(), properties(propertiesStyle)
: properties(propertiesStyle)
{
}

View File

@ -44,7 +44,6 @@ public:
};
Mod::Tag::Tag() :
TagLib::Tag(),
d(new TagPrivate())
{
}

View File

@ -34,7 +34,6 @@ class MP4::CoverArt::CoverArtPrivate : public RefCounter
{
public:
CoverArtPrivate() :
RefCounter(),
format(MP4::CoverArt::JPEG) {}
Format format;

View File

@ -34,7 +34,6 @@ class MP4::Item::ItemPrivate : public RefCounter
{
public:
ItemPrivate() :
RefCounter(),
valid(true),
atomDataType(TypeUndefined) {}

View File

@ -85,13 +85,11 @@ ByteVector ID3v1::StringHandler::render(const String &s) const
////////////////////////////////////////////////////////////////////////////////
ID3v1::Tag::Tag() :
TagLib::Tag(),
d(new TagPrivate())
{
}
ID3v1::Tag::Tag(File *file, long tagOffset) :
TagLib::Tag(),
d(new TagPrivate())
{
d->file = file;

View File

@ -120,14 +120,12 @@ String Latin1StringHandler::parse(const ByteVector &data) const
////////////////////////////////////////////////////////////////////////////////
ID3v2::Tag::Tag() :
TagLib::Tag(),
d(new TagPrivate())
{
d->factory = FrameFactory::instance();
}
ID3v2::Tag::Tag(File *file, long tagOffset, const FrameFactory *factory) :
TagLib::Tag(),
d(new TagPrivate())
{
d->factory = factory;

View File

@ -61,13 +61,11 @@ public:
////////////////////////////////////////////////////////////////////////////////
Ogg::XiphComment::XiphComment() :
TagLib::Tag(),
d(new XiphCommentPrivate())
{
}
Ogg::XiphComment::XiphComment(const ByteVector &data) :
TagLib::Tag(),
d(new XiphCommentPrivate())
{
parse(data);

View File

@ -71,14 +71,12 @@ ByteVector RIFF::Info::StringHandler::render(const String &s) const
////////////////////////////////////////////////////////////////////////////////
RIFF::Info::Tag::Tag(const ByteVector &data) :
TagLib::Tag(),
d(new TagPrivate())
{
parse(data);
}
RIFF::Info::Tag::Tag() :
TagLib::Tag(),
d(new TagPrivate())
{
}

View File

@ -70,7 +70,7 @@ ByteVectorList ByteVectorList::split(const ByteVector &v, const ByteVector &patt
// public members
////////////////////////////////////////////////////////////////////////////////
ByteVectorList::ByteVectorList() : List<ByteVector>()
ByteVectorList::ByteVectorList()
{
}

View File

@ -28,7 +28,7 @@
using namespace TagLib;
PropertyMap::PropertyMap() : SimplePropertyMap()
PropertyMap::PropertyMap()
{
}

View File

@ -141,8 +141,8 @@ namespace TagLib {
class String::StringPrivate : public RefCounter
{
public:
StringPrivate() :
RefCounter() {}
StringPrivate()
{}
/*!
* Stores string in UTF-16. The byte order depends on the CPU endian.

View File

@ -55,7 +55,7 @@ StringList StringList::split(const String &s, const String &pattern)
// public members
////////////////////////////////////////////////////////////////////////////////
StringList::StringList() : List<String>()
StringList::StringList()
{
}
@ -65,12 +65,12 @@ StringList::StringList(const StringList &l) : List<String>(l)
}
StringList::StringList(const String &s) : List<String>()
StringList::StringList(const String &s)
{
append(s);
}
StringList::StringList(const ByteVectorList &bl, String::Type t) : List<String>()
StringList::StringList(const ByteVectorList &bl, String::Type t)
{
ByteVectorList::ConstIterator i = bl.begin();
for(;i != bl.end(); i++) {

View File

@ -347,7 +347,7 @@ class XM::File::FilePrivate
{
public:
FilePrivate(AudioProperties::ReadStyle propertiesStyle)
: tag(), properties(propertiesStyle)
: properties(propertiesStyle)
{
}