mirror of
https://github.com/taglib/taglib.git
synced 2026-08-14 06:17:00 -04:00
Add checks for the expected sizes of all public classes
This ensures that d-pointers exist where they're expected, and that classes are virtual that we expect to be virtual, as well as ensuring that we get a failure if the class size changes when it shouldn't. This also fixes the issues that were discovered by adding these tests.
This commit is contained in:
@@ -110,6 +110,9 @@ namespace TagLib {
|
||||
bool readAudioProperties = true,
|
||||
AudioProperties::ReadStyle
|
||||
audioPropertiesStyle = AudioProperties::Average) const = 0;
|
||||
private:
|
||||
class FileTypeResolverPrivate;
|
||||
FileTypeResolverPrivate *d;
|
||||
};
|
||||
|
||||
class TAGLIB_EXPORT StreamTypeResolver : public FileTypeResolver
|
||||
@@ -124,6 +127,9 @@ namespace TagLib {
|
||||
bool readAudioProperties = true,
|
||||
AudioProperties::ReadStyle
|
||||
audioPropertiesStyle = AudioProperties::Average) const = 0;
|
||||
private:
|
||||
class StreamTypeResolverPrivate;
|
||||
StreamTypeResolverPrivate *d;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user