PPCSymbolDB: Default destructor and pass to member variables in the constructor initializer-list

This commit is contained in:
Lioncash 2018-04-08 21:56:24 -04:00
parent d6d17eea60
commit b44eb90ee4
2 changed files with 3 additions and 7 deletions

View File

@ -21,15 +21,11 @@
PPCSymbolDB g_symbolDB; PPCSymbolDB g_symbolDB;
PPCSymbolDB::PPCSymbolDB() PPCSymbolDB::PPCSymbolDB() : debugger{&PowerPC::debug_interface}
{ {
// Get access to the disasm() fgnction
debugger = &PowerPC::debug_interface;
} }
PPCSymbolDB::~PPCSymbolDB() PPCSymbolDB::~PPCSymbolDB() = default;
{
}
// Adds the function to the list, unless it's already there // Adds the function to the list, unless it's already there
Symbol* PPCSymbolDB::AddFunction(u32 start_addr) Symbol* PPCSymbolDB::AddFunction(u32 start_addr)

View File

@ -18,7 +18,7 @@ class PPCSymbolDB : public SymbolDB
{ {
public: public:
PPCSymbolDB(); PPCSymbolDB();
~PPCSymbolDB(); ~PPCSymbolDB() override;
Symbol* AddFunction(u32 start_addr) override; Symbol* AddFunction(u32 start_addr) override;
void AddKnownSymbol(u32 startAddr, u32 size, const std::string& name, void AddKnownSymbol(u32 startAddr, u32 size, const std::string& name,