From 56602df447c5f16257874f2e97b078dcf76f2467 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 23 Jun 2018 20:08:40 +0200 Subject: Cleanups in the Identifier API Rename from/asHeapObject to from/asStringOrSymbol and fix the signature. Add a isStringOrSymbol() method and redefine isValid() to also include array indices. Change-Id: Ic8272bfbe84d15421e2ebe86ddda7fdaa8db4f3e Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4string.cpp') diff --git a/src/qml/jsruntime/qv4string.cpp b/src/qml/jsruntime/qv4string.cpp index cfd2d0a5b2..50943525f1 100644 --- a/src/qml/jsruntime/qv4string.cpp +++ b/src/qml/jsruntime/qv4string.cpp @@ -55,7 +55,7 @@ using namespace QV4; void Heap::StringOrSymbol::markObjects(Heap::Base *that, MarkStack *markStack) { StringOrSymbol *s = static_cast(that); - Heap::Base *id = s->identifier.asHeapObject(); + Heap::Base *id = s->identifier.asStringOrSymbol(); if (id) id->mark(markStack); } -- cgit v1.2.3