Change DXBC::BasicDemangle() to pass by reference instead of value

This commit is contained in:
Jake Turner committed 2024-06-03 12:21:57 +01:00
1 parent ebbea348bc
commit 8c23b861d8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -414,6 +414,6 @@ public:
rdcarray<SourceVariableMapping> &locals) const = 0;
};
rdcstr BasicDemangle(rdcstr possiblyMangledName);
rdcstr BasicDemangle(const rdcstr &possiblyMangledName);
};
@@ -42,7 +42,7 @@ RDOC_EXTERN_CONFIG(rdcarray<rdcstr>, DXBC_Debug_SearchDirPaths);
namespace DXBC
{
rdcstr BasicDemangle(rdcstr possiblyMangledName)
rdcstr BasicDemangle(const rdcstr &possiblyMangledName)
{
if(possiblyMangledName.size() > 2 && possiblyMangledName[0] == '\x1' &&
possiblyMangledName[1] == '?')