Returning a copy of the string is what was likely meant to be done.
@@ -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();
};