diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-10-23 05:20:33 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-10-23 10:18:25 (GMT) |
commit | 73b14bae17d1bb84c89ca2a908f2cc105dcda015 (patch) | |
tree | f22f7edea1412384a2839c55b6a7d05f358dc954 /src/testlib/qtestmouse.h | |
parent | fb0af528ed52a90d422b95f6976e21fd670f40b0 (diff) | |
download | Qt-73b14bae17d1bb84c89ca2a908f2cc105dcda015.zip Qt-73b14bae17d1bb84c89ca2a908f2cc105dcda015.tar.gz Qt-73b14bae17d1bb84c89ca2a908f2cc105dcda015.tar.bz2 |
Speed up QScriptValue creation by avoiding operator= to be called
For non-object values, just return the value immediately; there is no way
that the later check (result.isObject()) will be true anyway.
This makes qScriptValueFromValue() ~50% faster.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/testlib/qtestmouse.h')
0 files changed, 0 insertions, 0 deletions