rest of virtuals removed

virtuals removed and replaced with override where necessary on the rest of the code base, clang-tidy to the rescue.
This commit is contained in:
marauder2k7 2024-03-18 18:40:22 +00:00
parent efbe5e90f5
commit 2b295fb7f0
454 changed files with 4162 additions and 4156 deletions

View file

@ -177,9 +177,9 @@ class OggTheoraDecoder : public OggDecoder,
void _transcode420toRGBA_SSE2( th_ycbcr_buffer ycbcr, U8* buffer, U32 width, U32 height, U32 pitch );
#endif
// OggDecoder.
virtual bool _detect( ogg_page* startPage );
virtual bool _init();
virtual bool _packetin( ogg_packet* packet );
bool _detect( ogg_page* startPage ) override;
bool _init() override;
bool _packetin( ogg_packet* packet ) override;
///
U32 _getPixelOffset( th_ycbcr_buffer buffer, U32 plane, U32 x, U32 y ) const
@ -258,10 +258,10 @@ class OggTheoraDecoder : public OggDecoder,
void reusePacket( OggTheoraFrame* packet ) { mFreePackets.pushBack( packet ); }
// OggDecoder.
virtual const char* getName() const { return "Theora"; }
const char* getName() const override { return "Theora"; }
// IInputStream.
virtual U32 read( OggTheoraFrame** buffer, U32 num );
U32 read( OggTheoraFrame** buffer, U32 num ) override;
};
#endif // !_OGGTHEORADECODER_H_

View file

@ -64,9 +64,9 @@ class OggVorbisDecoder : public OggDecoder,
#endif
// OggDecoder.
virtual bool _detect( ogg_page* startPage );
virtual bool _init();
virtual bool _packetin( ogg_packet* packet );
bool _detect( ogg_page* startPage ) override;
bool _init() override;
bool _packetin( ogg_packet* packet ) override;
public:
@ -82,10 +82,10 @@ class OggVorbisDecoder : public OggDecoder,
U32 getSamplesPerSecond() const { return mVorbisInfo.rate; }
// OggDecoder.
virtual const char* getName() const { return "Vorbis"; }
const char* getName() const override { return "Vorbis"; }
// IInputStream.
virtual U32 read( RawData** buffer, U32 num );
U32 read( RawData** buffer, U32 num ) override;
};
#endif // !_OGGVORBISDECODER_H_