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

@ -38,8 +38,8 @@ class SFXNullBuffer : public SFXBuffer
SFXNullBuffer( const ThreadSafeRef< SFXStream >& stream, SFXDescription* description );
// SFXBuffer.
virtual void write( SFXInternal::SFXStreamPacket* const* packets, U32 num );
virtual void _flush() {}
void write( SFXInternal::SFXStreamPacket* const* packets, U32 num ) override;
void _flush() override {}
public:

View file

@ -55,9 +55,9 @@ class SFXNullDevice : public SFXDevice
public:
// SFXDevice.
virtual SFXBuffer* createBuffer( const ThreadSafeRef< SFXStream >& stream, SFXDescription* description );
virtual SFXVoice* createVoice( bool is3D, SFXBuffer *buffer );
virtual void update();
SFXBuffer* createBuffer( const ThreadSafeRef< SFXStream >& stream, SFXDescription* description ) override;
SFXVoice* createVoice( bool is3D, SFXBuffer *buffer ) override;
void update() override;
};
#endif // _SFXNULLDEVICE_H_

View file

@ -36,11 +36,11 @@ public:
protected:
void addDeviceDesc( const String& name, const String& desc );
void init();
void init() override;
public:
SFXDevice* createDevice( const String& deviceName, bool useHardware, S32 maxBuffers );
SFXDevice* createDevice( const String& deviceName, bool useHardware, S32 maxBuffers ) override;
};

View file

@ -54,12 +54,12 @@ class SFXNullVoice : public SFXVoice
bool mIsLooping;
// SFXVoice.
virtual SFXStatus _status() const;
virtual void _play();
virtual void _pause();
virtual void _stop();
virtual void _seek( U32 sample );
virtual U32 _tell() const;
SFXStatus _status() const override;
void _play() override;
void _pause() override;
void _stop() override;
void _seek( U32 sample ) override;
U32 _tell() const override;
///
U32 _getPlayTime() const
@ -72,15 +72,15 @@ class SFXNullVoice : public SFXVoice
virtual ~SFXNullVoice();
/// SFXVoice
SFXStatus getStatus() const;
void setPosition( U32 sample );
void play( bool looping );
void setMinMaxDistance( F32 min, F32 max );
void setVelocity( const VectorF& velocity );
void setTransform( const MatrixF& transform );
void setVolume( F32 volume );
void setPitch( F32 pitch );
void setCone( F32 innerAngle, F32 outerAngle, F32 outerVolume );
SFXStatus getStatus() const override;
void setPosition( U32 sample ) override;
void play( bool looping ) override;
void setMinMaxDistance( F32 min, F32 max ) override;
void setVelocity( const VectorF& velocity ) override;
void setTransform( const MatrixF& transform ) override;
void setVolume( F32 volume ) override;
void setPitch( F32 pitch ) override;
void setCone( F32 innerAngle, F32 outerAngle, F32 outerVolume ) override;
};
#endif // _SFXNULLVOICE_H_