mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2024-12-25 13:45:37 +00:00
Merge pull request #57 from lioncash/str
Common: Don't return a reference to a string when calling GetName in symbols.cpp
This commit is contained in:
commit
0a1aab5b42
|
@ -40,7 +40,7 @@ namespace Symbols
|
||||||
|
|
||||||
return symbol;
|
return symbol;
|
||||||
}
|
}
|
||||||
const std::string& GetName(u32 _address)
|
const std::string GetName(u32 _address)
|
||||||
{
|
{
|
||||||
return GetSymbol(_address).name;
|
return GetSymbol(_address).name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace Symbols
|
||||||
|
|
||||||
void Add(u32 _address, const std::string& _name, u32 _size, u32 _type);
|
void Add(u32 _address, const std::string& _name, u32 _size, u32 _type);
|
||||||
TSymbol GetSymbol(u32 _address);
|
TSymbol GetSymbol(u32 _address);
|
||||||
const std::string& GetName(u32 _address);
|
const std::string GetName(u32 _address);
|
||||||
void Remove(u32 _address);
|
void Remove(u32 _address);
|
||||||
void Clear();
|
void Clear();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue