aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory/qv4heap_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/memory/qv4heap_p.h')
-rw-r--r--src/qml/memory/qv4heap_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/memory/qv4heap_p.h b/src/qml/memory/qv4heap_p.h
index c396f0fd21..5f931529e9 100644
--- a/src/qml/memory/qv4heap_p.h
+++ b/src/qml/memory/qv4heap_p.h
@@ -114,7 +114,7 @@ struct Pointer {
Pointer &operator =(T *t) { ptr = t; return *this; }
template <typename Type>
- Type *as() { return static_cast<Type *>(ptr); }
+ Type *cast() { return static_cast<Type *>(ptr); }
// Use Base, not T here, to ensure T inherits from ptr
Base *ptr;