summaryrefslogtreecommitdiff
path: root/source/core/slang-smart-pointer.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-02-04 13:50:51 -0800
committerGitHub <noreply@github.com>2021-02-04 13:50:51 -0800
commitc40f10b704b8bd5a744cc9b3964344585436b1ac (patch)
tree1c9608f3cc32949d88fe04f3512cd3147fc3fe1f /source/core/slang-smart-pointer.h
parent7f266f1ea7a51213069282296a905650fd405c3f (diff)
[gfx] Shader-object driven shader compilation. (#1688)
Diffstat (limited to 'source/core/slang-smart-pointer.h')
-rw-r--r--source/core/slang-smart-pointer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/slang-smart-pointer.h b/source/core/slang-smart-pointer.h
index 53ac010ed..eb9fe7be5 100644
--- a/source/core/slang-smart-pointer.h
+++ b/source/core/slang-smart-pointer.h
@@ -114,9 +114,9 @@ namespace Slang
template <typename U>
RefPtr(RefPtr<U> const& p,
typename EnableIf<IsConvertible<T*, U*>::Value, void>::type * = 0)
- : pointer((U*) p)
+ : pointer(static_cast<U*>(p))
{
- addReference((U*) p);
+ addReference(static_cast<U*>(p));
}
#if 0
@@ -200,7 +200,7 @@ namespace Slang
~RefPtr()
{
- releaseReference((Slang::RefObject*) pointer);
+ releaseReference(static_cast<Slang::RefObject*>(pointer));
}
T& operator*() const