summaryrefslogtreecommitdiff
path: root/source/core/slang-smart-pointer.h
diff options
context:
space:
mode:
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