summaryrefslogtreecommitdiff
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-17 13:43:58 -0700
committerGitHub <noreply@github.com>2017-07-17 13:43:58 -0700
commit0059ccb3997c2af87bc3f76524d8cd4787c20b7e (patch)
tree3c07ad5576737423cd407772a7d23748eb67f090 /source/slang/syntax.h
parentb4977c1626f9791bc0c84c75e7012ddd7cb40913 (diff)
parent453a9ca07417bbc17294267c5e44843d16e93c50 (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.h4
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();
}