From b44eb90ee4014bbd8e41ae335287ee8bc2ba2157 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 8 Apr 2018 21:56:24 -0400 Subject: [PATCH] PPCSymbolDB: Default destructor and pass to member variables in the constructor initializer-list --- Source/Core/Core/PowerPC/PPCSymbolDB.cpp | 8 ++------ Source/Core/Core/PowerPC/PPCSymbolDB.h | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp index a71f3722d2..cd1d6960f0 100644 --- a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp +++ b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp @@ -21,15 +21,11 @@ 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 Symbol* PPCSymbolDB::AddFunction(u32 start_addr) diff --git a/Source/Core/Core/PowerPC/PPCSymbolDB.h b/Source/Core/Core/PowerPC/PPCSymbolDB.h index 2a6afc4979..de60c3d8dd 100644 --- a/Source/Core/Core/PowerPC/PPCSymbolDB.h +++ b/Source/Core/Core/PowerPC/PPCSymbolDB.h @@ -18,7 +18,7 @@ class PPCSymbolDB : public SymbolDB { public: PPCSymbolDB(); - ~PPCSymbolDB(); + ~PPCSymbolDB() override; Symbol* AddFunction(u32 start_addr) override; void AddKnownSymbol(u32 startAddr, u32 size, const std::string& name,