diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-17 13:43:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-17 13:43:58 -0700 |
| commit | 0059ccb3997c2af87bc3f76524d8cd4787c20b7e (patch) | |
| tree | 3c07ad5576737423cd407772a7d23748eb67f090 /source/slang/syntax.h | |
| parent | b4977c1626f9791bc0c84c75e7012ddd7cb40913 (diff) | |
| parent | 453a9ca07417bbc17294267c5e44843d16e93c50 (diff) | |
Merge pull request #111 from tfoleyNV/falcor-shadows-fixes
Falcor shadows fixes
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 83b2f5801..3f1c47fb9 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -244,7 +244,7 @@ namespace Slang : createFunc(createFunc) {} - void* createInstanceImpl() + void* createInstanceImpl() const { return createFunc ? createFunc() : nullptr; } @@ -271,7 +271,7 @@ namespace Slang { } - T* createInstance() + T* createInstance() const { return (T*)createInstanceImpl(); } |
