clang-tidy: use member initializer

Found with cppcoreguidelines-prefer-member-initializer

Signed-off-by: Rosen Penev <[email protected]>
This commit is contained in:
Rosen Penev
2022-11-28 07:04:42 +01:00
committed by Urs Fleisch
parent e49724ae5f
commit abbf880872
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,8 +37,8 @@ public:
};
FLAC::MetadataBlock::MetadataBlock()
: d(0)
{
d = 0;
}
FLAC::MetadataBlock::~MetadataBlock()
+1 -1
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