mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-06 03:40:12 +00:00
SymbolDB: Default constructor and destructor within the cpp file
Given this is a class with non-trivial data-members, it's preferable to default the constructor and destructor in the cpp file.
This commit is contained in:
parent
a1a81c7bc9
commit
72e8058fb8
@ -20,6 +20,10 @@ static std::string GetStrippedFunctionName(const std::string& symbol_name)
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SymbolDB::SymbolDB() = default;
|
||||||
|
|
||||||
|
SymbolDB::~SymbolDB() = default;
|
||||||
|
|
||||||
void Symbol::Rename(const std::string& symbol_name)
|
void Symbol::Rename(const std::string& symbol_name)
|
||||||
{
|
{
|
||||||
this->name = symbol_name;
|
this->name = symbol_name;
|
||||||
|
@ -62,8 +62,9 @@ public:
|
|||||||
using XFuncMap = std::map<u32, Symbol>;
|
using XFuncMap = std::map<u32, Symbol>;
|
||||||
using XFuncPtrMap = std::map<u32, std::set<Symbol*>>;
|
using XFuncPtrMap = std::map<u32, std::set<Symbol*>>;
|
||||||
|
|
||||||
SymbolDB() {}
|
SymbolDB();
|
||||||
virtual ~SymbolDB() {}
|
virtual ~SymbolDB();
|
||||||
|
|
||||||
virtual Symbol* GetSymbolFromAddr(u32 addr) { return nullptr; }
|
virtual Symbol* GetSymbolFromAddr(u32 addr) { return nullptr; }
|
||||||
virtual Symbol* AddFunction(u32 start_addr) { return nullptr; }
|
virtual Symbol* AddFunction(u32 start_addr) { return nullptr; }
|
||||||
void AddCompleteSymbol(const Symbol& symbol);
|
void AddCompleteSymbol(const Symbol& symbol);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user