mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
Change DXBC::BasicDemangle() to pass by reference instead of value
This commit is contained in:
1 parent
ebbea348bc
commit
8c23b861d8
2 files changed
+2
-2
No files matched your search
@@ -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] == '?')
|
||||
|
||||
Reference in new issue
Block a user