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:
Lioncash 2018-05-16 15:57:12 -04:00
parent b203024a26
commit a7b8b15e7f
7 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -18,7 +18,7 @@ class AXWiiUCode : public AXUCode
{
public:
AXWiiUCode(DSPHLE* dsphle, u32 crc);
virtual ~AXWiiUCode();
~AXWiiUCode() override;
void DoState(PointerWrap& p) override;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;