diff options
author | bunnei <bunneidev@gmail.com> | 2015-10-01 11:20:21 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-10-01 11:20:21 -0400 |
commit | 1f18d64d1fde22c44ed46287e27450f3c240e79c (patch) | |
tree | 20c1ac32e96873a13488a5667f962ff6030cc4cd /src/common/symbols.h | |
parent | bcaafb826eb666e1e883158a531d28c3b4c7f13d (diff) | |
parent | 8cb2bc748d56cb0f0cb0f432e17fc6db73311696 (diff) |
Merge pull request #1180 from lioncash/symbol
symbols: Minor changes
Diffstat (limited to 'src/common/symbols.h')
-rw-r--r-- | src/common/symbols.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/common/symbols.h b/src/common/symbols.h index 6b62b011e..5ed16009c 100644 --- a/src/common/symbols.h +++ b/src/common/symbols.h @@ -12,15 +12,10 @@ struct TSymbol { - TSymbol() : - address(0), - size(0), - type(0) - {} - u32 address; + u32 address = 0; std::string name; - u32 size; - u32 type; + u32 size = 0; + u32 type = 0; }; typedef std::map<u32, TSymbol> TSymbolsMap; @@ -28,12 +23,12 @@ typedef std::pair<u32, TSymbol> TSymbolsPair; namespace Symbols { - bool HasSymbol(u32 _address); + bool HasSymbol(u32 address); - void Add(u32 _address, const std::string& _name, u32 _size, u32 _type); - TSymbol GetSymbol(u32 _address); - const std::string GetName(u32 _address); - void Remove(u32 _address); + void Add(u32 address, const std::string& name, u32 size, u32 type); + TSymbol GetSymbol(u32 address); + const std::string GetName(u32 address); + void Remove(u32 address); void Clear(); } |