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
|
|
@ -407,8 +407,8 @@ public:
|
|||
POOL_ALLOCATOR_NEW_DELETE(glslang::GetThreadPoolAllocator())
|
||||
|
||||
TIntermNode() { loc.init(); }
|
||||
virtual glslang::TSourceLoc getLoc() const { return loc; }
|
||||
virtual void setLoc(glslang::TSourceLoc l) { loc = l; }
|
||||
virtual const glslang::TSourceLoc& getLoc() const { return loc; }
|
||||
virtual void setLoc(const glslang::TSourceLoc& l) { loc = l; }
|
||||
virtual void traverse(glslang::TIntermTraverser*) = 0;
|
||||
virtual glslang::TIntermTyped* getAsTyped() { return 0; }
|
||||
virtual glslang::TIntermOperator* getAsOperator() { return 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue