From 30850d1ebc28bfe68b329229b537a7d6a7791b29 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 8 Jan 2018 12:00:00 +0100 Subject: Remove dependency from qv4heap_p.h onto qv4internalclass_p.h This is required to be able to turn the internal class into something that lives on the GC heap. Change-Id: Ie4318588d420743b1e1ab1cd596a1c9d153eb793 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4errorobject_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4errorobject_p.h') diff --git a/src/qml/jsruntime/qv4errorobject_p.h b/src/qml/jsruntime/qv4errorobject_p.h index bbb2e1ad55..9f51e6b99b 100644 --- a/src/qml/jsruntime/qv4errorobject_p.h +++ b/src/qml/jsruntime/qv4errorobject_p.h @@ -180,7 +180,7 @@ struct ErrorObject: Object { template<> inline const ErrorObject *Value::as() const { - return isManaged() && m()->vtable()->isErrorObject ? reinterpret_cast(this) : nullptr; + return isManaged() && m()->internalClass->vtable->isErrorObject ? reinterpret_cast(this) : nullptr; } struct EvalErrorObject: ErrorObject { -- cgit v1.2.3