diff options
Diffstat (limited to 'src/kernel/NeKit/Variant.h')
| -rw-r--r-- | src/kernel/NeKit/Variant.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/NeKit/Variant.h b/src/kernel/NeKit/Variant.h index 41c5f942..2f4ce1ff 100644 --- a/src/kernel/NeKit/Variant.h +++ b/src/kernel/NeKit/Variant.h @@ -54,9 +54,7 @@ class Variant final { RefAny Leak(); template <typename T> - T* As() { - return reinterpret_cast<T*>(fPtr); - } + T* As(); VariantKind& Kind(); @@ -66,4 +64,6 @@ class Variant final { }; } // namespace Kernel +#include "Variant.inl" + #endif |
