mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
DSPHLE/UCodes: Replace unnecessary virtual keywords with override
Given these HLE classes inherit from a common base with a virtual destructor, override is more appropriate here, as virtual propagates to these destructors anyway. This is also safer. If the base class' destructor is ever made non-virtual, then these classes will cause a compilation error if they aren't taken into account, as they'd be overriding a non-virtual function (the destructor).
This commit is contained in:
parent
b203024a26
commit
a7b8b15e7f
@ -59,7 +59,7 @@ class AXUCode : public UCodeInterface
|
||||
{
|
||||
public:
|
||||
AXUCode(DSPHLE* dsphle, u32 crc);
|
||||
virtual ~AXUCode();
|
||||
~AXUCode() override;
|
||||
|
||||
void Initialize() override;
|
||||
void HandleMail(u32 mail) override;
|
||||
|
@ -18,7 +18,7 @@ class AXWiiUCode : public AXUCode
|
||||
{
|
||||
public:
|
||||
AXWiiUCode(DSPHLE* dsphle, u32 crc);
|
||||
virtual ~AXWiiUCode();
|
||||
~AXWiiUCode() override;
|
||||
|
||||
void DoState(PointerWrap& p) override;
|
||||
|
||||
|
@ -17,7 +17,7 @@ class CARDUCode : public UCodeInterface
|
||||
{
|
||||
public:
|
||||
CARDUCode(DSPHLE* dsphle, u32 crc);
|
||||
virtual ~CARDUCode();
|
||||
~CARDUCode() override;
|
||||
|
||||
void Initialize() override;
|
||||
void HandleMail(u32 mail) override;
|
||||
|
@ -21,7 +21,7 @@ void ProcessGBACrypto(u32 address);
|
||||
struct GBAUCode : public UCodeInterface
|
||||
{
|
||||
GBAUCode(DSPHLE* dsphle, u32 crc);
|
||||
virtual ~GBAUCode();
|
||||
~GBAUCode() override;
|
||||
|
||||
void Initialize() override;
|
||||
void HandleMail(u32 mail) override;
|
||||
|
@ -17,7 +17,7 @@ class INITUCode : public UCodeInterface
|
||||
{
|
||||
public:
|
||||
INITUCode(DSPHLE* dsphle, u32 crc);
|
||||
virtual ~INITUCode();
|
||||
~INITUCode() override;
|
||||
|
||||
void Initialize() override;
|
||||
void HandleMail(u32 mail) override;
|
||||
|
@ -17,7 +17,7 @@ class ROMUCode : public UCodeInterface
|
||||
{
|
||||
public:
|
||||
ROMUCode(DSPHLE* dsphle, u32 crc);
|
||||
virtual ~ROMUCode();
|
||||
~ROMUCode() override;
|
||||
|
||||
void Initialize() override;
|
||||
void HandleMail(u32 mail) override;
|
||||
|
@ -194,7 +194,7 @@ class ZeldaUCode : public UCodeInterface
|
||||
{
|
||||
public:
|
||||
ZeldaUCode(DSPHLE* dsphle, u32 crc);
|
||||
virtual ~ZeldaUCode();
|
||||
~ZeldaUCode() override;
|
||||
|
||||
void Initialize() override;
|
||||
void HandleMail(u32 mail) override;
|
||||
|
Loading…
Reference in New Issue
Block a user