Reuse the hash value inside identifier to hash them
authorLars Knoll <lars.knoll@digia.com>
Fri, 28 Jun 2013 06:25:05 +0000 (08:25 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Jun 2013 12:56:31 +0000 (14:56 +0200)
commitbc9c9ca653796582b5faacb5415d12fd71d036f1
tree8876e178834caee6fecdee864857008da7ec515b
parent8dab9e5d118c9a0d6d180a44aaa8f7c3a1108ae2
Reuse the hash value inside identifier to hash them

Hashing on the pointer value of an identifier doesn't
really make sense. We already have a good hash value
for the identifier, so let's re-use it. In addition, this
allows to look up strings that aren't identifiers.

Change-Id: I9bdb4aa89ae36410f24b3e58c641339e115e4c5f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4identifier.cpp
src/qml/qml/v4/qv4identifier_p.h
src/qml/qml/v4/qv4internalclass.cpp