aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4managed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4managed.cpp')
-rw-r--r--src/qml/jsruntime/qv4managed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4managed.cpp b/src/qml/jsruntime/qv4managed.cpp
index 9dc583bbf7..668e7d296d 100644
--- a/src/qml/jsruntime/qv4managed.cpp
+++ b/src/qml/jsruntime/qv4managed.cpp
@@ -100,7 +100,7 @@ QString Managed::className() const
s = "RegExp";
break;
case Type_ErrorObject:
- switch (Heap::ErrorObject::ErrorType(subtype())) {
+ switch (static_cast<Heap::ErrorObject *>(d())->errorType) {
case Heap::ErrorObject::Error:
s = "Error";
break;