mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 20:14:17 +01:00
Common: Don't return a reference to a string when calling GetName in symbols.cpp
Returning a copy of the string is what was likely meant to be done.
This commit is contained in:
parent
68c81f28d9
commit
a49a5fa4d9
@ -40,7 +40,7 @@ namespace Symbols
|
||||
|
||||
return symbol;
|
||||
}
|
||||
const std::string& GetName(u32 _address)
|
||||
const std::string GetName(u32 _address)
|
||||
{
|
||||
return GetSymbol(_address).name;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace Symbols
|
||||
|
||||
void Add(u32 _address, const std::string& _name, u32 _size, u32 _type);
|
||||
TSymbol GetSymbol(u32 _address);
|
||||
const std::string& GetName(u32 _address);
|
||||
const std::string GetName(u32 _address);
|
||||
void Remove(u32 _address);
|
||||
void Clear();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user