Minor changes: remove use of 'auto', plug obscure memory leak, update copyright.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21136 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
0576126005
commit
0108aa1183
7 changed files with 15 additions and 5 deletions
|
|
@ -1576,7 +1576,7 @@ void TParseContext::addBlock(int line, TPublicType& publicType, const TString& b
|
|||
|
||||
void TParseContext::wrapupSwitchSubsequence(TIntermAggregate* statements, TIntermNode* branchNode)
|
||||
{
|
||||
auto switchSequence = switchSequenceStack.back();
|
||||
TIntermSequence* switchSequence = switchSequenceStack.back();
|
||||
|
||||
if (statements) {
|
||||
if (switchSequence->size() == 0) {
|
||||
|
|
@ -1605,7 +1605,7 @@ TIntermNode* TParseContext::addSwitch(int line, TIntermTyped* expression, TInter
|
|||
}
|
||||
|
||||
// If there is nothing to do, drop the switch but still execute the expression
|
||||
auto switchSequence = switchSequenceStack.back();
|
||||
TIntermSequence* switchSequence = switchSequenceStack.back();
|
||||
if (switchSequence->size() == 0)
|
||||
return expression;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue