diff options
| author | Tim Foley <tim.foley.is@gmail.com> | 2017-06-15 17:18:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-15 17:18:00 -0700 |
| commit | 0bf3d6d4db7409fcd288ff69e75e8e8b4f082969 (patch) | |
| tree | 7bee1ed3a1f235ac97de9f8d9893f2994015c5c3 /source/slang/type-layout.h | |
| parent | 1353a7854a738ae173aa1b2f3361f54b82757095 (diff) | |
| parent | e0389f5a1f32cb611e5a595a5974ee1d5c15f43d (diff) | |
Merge pull request #27 from tfoleyNV/decl-ref-cleanup
Replace `DeclRef` approach
Diffstat (limited to 'source/slang/type-layout.h')
| -rw-r--r-- | source/slang/type-layout.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/type-layout.h b/source/slang/type-layout.h index df937c1d4..07867fddb 100644 --- a/source/slang/type-layout.h +++ b/source/slang/type-layout.h @@ -219,8 +219,8 @@ class VarLayout : public RefObject { public: // The variable we are laying out - VarDeclBaseRef varDecl; - VarDeclBase* getVariable() { return varDecl.GetDecl(); } + DeclRef<VarDeclBase> varDecl; + VarDeclBase* getVariable() { return varDecl.getDecl(); } String const& getName() { return getVariable()->getName(); } |
