aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4string.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-12-13 10:01:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-03 17:09:19 +0100
commit5ad5d4ef865eae376ecd86e8487ec2e56174ae4e (patch)
tree2895f2876fa5bb0189780a55497993599b5a9034 /src/qml/jsruntime/qv4string.cpp
parentaf87f45a98b5e2b405438f0164ec3a27b2343c2d (diff)
Use the flags to check whether a Managed is of a certain type
Change-Id: I740c4b7e26bdb9d9f40c1c46615cc68f679e036f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4string.cpp')
-rw-r--r--src/qml/jsruntime/qv4string.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4string.cpp b/src/qml/jsruntime/qv4string.cpp
index 0b38b5c08b..b97b23bf44 100644
--- a/src/qml/jsruntime/qv4string.cpp
+++ b/src/qml/jsruntime/qv4string.cpp
@@ -240,10 +240,9 @@ bool String::isEqualTo(Managed *t, Managed *o)
if (t == o)
return true;
- if (o->internalClass->vtable->type != Type_String)
+ if (!o->internalClass->vtable->isString)
return false;
- Q_ASSERT(t->internalClass->vtable->type == Type_String);
String *that = static_cast<String *>(t);
String *other = static_cast<String *>(o);
if (that->hashValue() != other->hashValue())