diff options
author | Lioncash <mathew1800@gmail.com> | 2014-08-18 01:58:59 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2014-08-18 01:59:03 -0400 |
commit | a49a5fa4d94e48e1f049365a8071ab5207ac5eee (patch) | |
tree | 362964ce0d437e8026d634158f41f5fbda229e92 /src/common/symbols.cpp | |
parent | 68c81f28d947193d050cb04bbcfd42b6ef1307f3 (diff) |
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.
Diffstat (limited to 'src/common/symbols.cpp')
-rw-r--r-- | src/common/symbols.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/symbols.cpp b/src/common/symbols.cpp index dcc9eeac5b..d61f4c0c6c 100644 --- a/src/common/symbols.cpp +++ b/src/common/symbols.cpp @@ -40,7 +40,7 @@ namespace Symbols return symbol; } - const std::string& GetName(u32 _address) + const std::string GetName(u32 _address) { return GetSymbol(_address).name; } |