aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-28 13:24:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-28 14:56:43 +0200
commite0b511204f54a6a94878bb6d620d116d3117423b (patch)
tree8d336e77416aabc7e6044c36a840d0cdac59e4b9 /src/qml/qml/v4
parentf1d79eeb1b122c0b8e506f1406cfc4e041a4c9b4 (diff)
Fix IdentifierHash::findId()
Change-Id: Ie5e18b82ceeef85a4dc3e36345c5824f907bb122 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v4')
-rw-r--r--src/qml/qml/v4/qv4identifier_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/v4/qv4identifier_p.h b/src/qml/qml/v4/qv4identifier_p.h
index 250f4bece0..7c69e1d8c4 100644
--- a/src/qml/qml/v4/qv4identifier_p.h
+++ b/src/qml/qml/v4/qv4identifier_p.h
@@ -205,8 +205,9 @@ QString IdentifierHash<T>::findId(T value) const
IdentifierHashEntry *e = d->entries;
IdentifierHashEntry *end = e + d->alloc;
while (e < end) {
- if (e->get((T*)0) == value)
+ if (e->identifier && e->get((T*)0) == value)
return e->identifier->string;
+ ++e;
}
return QString();
}