Non-functional: Round of adding 'const', related to more efficient getFullNamespaceName().
This commit is contained in:
parent
714e58b2fc
commit
4dc835c369
7 changed files with 32 additions and 31 deletions
|
|
@ -344,7 +344,7 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& nodeList)
|
|||
while (acceptIdentifier(idToken)) {
|
||||
if (peekTokenClass(EHTokLeftParen)) {
|
||||
// looks like function parameters
|
||||
TString* fnName = idToken.string;
|
||||
const TString* fnName = idToken.string;
|
||||
|
||||
// Potentially rename shader entry point function. No-op most of the time.
|
||||
parseContext.renameShaderFunction(fnName);
|
||||
|
|
@ -2090,7 +2090,8 @@ bool HlslGrammar::acceptMemberFunctionDefinition(TIntermNode*& nodeList, const T
|
|||
{
|
||||
bool accepted = false;
|
||||
|
||||
TString* functionName = parseContext.getFullNamespaceName(memberName);
|
||||
const TString* functionName = &memberName;
|
||||
parseContext.getFullNamespaceName(functionName);
|
||||
declarator.function = new TFunction(functionName, type);
|
||||
if (type.getQualifier().storage == EvqTemporary)
|
||||
declarator.function->setImplicitThis();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue