Add missing override keywords

This commit is contained in:
Christian Semmler 2023-11-09 10:52:58 -05:00
parent 1f6d1ddab0
commit 82697d7148
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C
5 changed files with 7 additions and 8 deletions

View file

@ -12,7 +12,7 @@ class MxDSActionList : public MxList<MxDSAction*> {
public:
MxDSActionList() { this->m_unk18 = 0; }
virtual MxS8 Compare(MxDSAction*, MxDSAction*); // +0x14
virtual MxS8 Compare(MxDSAction*, MxDSAction*) override; // +0x14
static void Destroy(MxDSAction* p_action);

View file

@ -63,13 +63,12 @@ class MxHashTable : protected HashTableParent<T> {
m_resizeOption = HASH_TABLE_OPT_NO_EXPAND;
}
virtual ~MxHashTable();
virtual ~MxHashTable() override;
void Resize();
void Add(T*);
virtual MxS8 Compare(T*, T*) = 0;
virtual MxS8 Compare(T*, T*) override = 0;
virtual MxU32 Hash(T*) = 0;
// FIXME: use of friend here?

View file

@ -70,7 +70,7 @@ class MxList : protected MxListParent<T> {
m_first = NULL;
}
virtual ~MxList();
virtual ~MxList() override;
void Append(T p_obj) { _InsertEntry(p_obj, this->m_last, NULL); };
void DeleteAll();

View file

@ -17,7 +17,7 @@ class MxPresenterListParent : public MxList<MxPresenter*> {
// SIZE 0x18
class MxPresenterList : public MxPresenterListParent {
public:
virtual MxS8 Compare(MxPresenter*, MxPresenter*); // +0x14
virtual MxS8 Compare(MxPresenter*, MxPresenter*) override; // +0x14
};
typedef MxListCursorChildChild<MxPresenter*> MxPresenterListCursor;

View file

@ -17,8 +17,8 @@ class MxVariableTable : public MxHashTable<MxVariable> {
// OFFSET: LEGO1 0x100afdb0
static void Destroy(MxVariable* p_obj) { p_obj->Destroy(); }
virtual MxS8 Compare(MxVariable*, MxVariable*); // +0x14
virtual MxU32 Hash(MxVariable*); // +0x18
virtual MxS8 Compare(MxVariable*, MxVariable*) override; // +0x14
virtual MxU32 Hash(MxVariable*) override; // +0x18
};
// OFFSET: LEGO1 0x100b0bd0 TEMPLATE