diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-10-30 12:23:28 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-10-30 13:33:20 (GMT) |
commit | 8097fa53b5e0e6228bd5737de6de8cd77c04dddf (patch) | |
tree | 095b65b7b80dc8d82207d4c757f5433fc01659e9 /tests/auto/qrect | |
parent | 96799bf4da265835b5e574593bc5106712352ffc (diff) | |
download | Qt-8097fa53b5e0e6228bd5737de6de8cd77c04dddf.zip Qt-8097fa53b5e0e6228bd5737de6de8cd77c04dddf.tar.gz Qt-8097fa53b5e0e6228bd5737de6de8cd77c04dddf.tar.bz2 |
Add QScriptString::toArrayIndex() function
Avoid hacking a custom toArrayIndex() in the example; instead provide
an ECMA-compliant conversion that's as fast as possible (having to
convert the QScriptString to a QString and then convert the result to
a number is considerably slower than calling JSC's
Identifier::toArrayIndex() function directly).
Reviewed-by: Olivier Goffart
Diffstat (limited to 'tests/auto/qrect')
0 files changed, 0 insertions, 0 deletions