clang-tidy: use member initializer

Found with cppcoreguidelines-prefer-member-initializer

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2022-11-26 22:40:37 -08:00 committed by Urs Fleisch
parent e49724ae5f
commit abbf880872
2 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ public:
};
FLAC::MetadataBlock::MetadataBlock()
: d(0)
{
d = 0;
}
FLAC::MetadataBlock::~MetadataBlock()

View File

@ -38,10 +38,10 @@ const char *const MP4::Atom::containers[11] = {
};
MP4::Atom::Atom(File *file)
: offset(file->tell())
{
children.setAutoDelete(true);
offset = file->tell();
ByteVector header = file->readBlock(8);
if(header.size() != 8) {
// The atom header must be 8 bytes long, otherwise there is either