Use const reference for TSourceLoc in interfaces.
This commit is contained in:
parent
780a2f4426
commit
54e47cc275
9 changed files with 272 additions and 272 deletions
|
|
@ -798,7 +798,7 @@ public:
|
|||
const TType* userDef;
|
||||
TSourceLoc loc;
|
||||
|
||||
void initType(TSourceLoc l)
|
||||
void initType(const TSourceLoc& l)
|
||||
{
|
||||
basicType = EbtVoid;
|
||||
vectorSize = 1;
|
||||
|
|
@ -816,7 +816,7 @@ public:
|
|||
qualifier.storage = EvqGlobal;
|
||||
}
|
||||
|
||||
void init(TSourceLoc loc, bool global = false)
|
||||
void init(const TSourceLoc& loc, bool global = false)
|
||||
{
|
||||
initType(loc);
|
||||
sampler.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue