diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-08 21:02:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-11 13:02:12 +0200 |
commit | a808e4fc15dfe2aca08786f4b747dde45e455929 (patch) | |
tree | 9e3241f34f942329bfb37025a7eea5ae6c4ce611 /src/qml/jsruntime/qv4identifier.cpp | |
parent | 45b34c0ecfea8192ea09909b7c83440ca4c6a60f (diff) |
Add ValueRef classe and use it to make things GC safe
The ValueRef class holds a reference to a Value that
is already known to the GC. ValueRef's should be
used to pass Value arguments to methods.
As a first step us the class to make unary
operations GC safe
Change-Id: Ie13e332ed95b2908df9a201a3f757db864c05ca9
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4identifier.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4identifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4identifier.cpp b/src/qml/jsruntime/qv4identifier.cpp index 5d8077bfdc..08f48c36a4 100644 --- a/src/qml/jsruntime/qv4identifier.cpp +++ b/src/qml/jsruntime/qv4identifier.cpp @@ -114,7 +114,7 @@ const IdentifierHashEntry *IdentifierHashBase::lookup(const Identifier *identifi { if (!d) return 0; - assert(d->entries); + Q_ASSERT(d->entries); uint idx = identifier->hashValue % d->alloc; while (1) { @@ -131,7 +131,7 @@ const IdentifierHashEntry *IdentifierHashBase::lookup(const QString &str) const { if (!d) return 0; - assert(d->entries); + Q_ASSERT(d->entries); uint hash = String::createHashValue(str.constData(), str.length()); uint idx = hash % d->alloc; |