summaryrefslogtreecommitdiffstats
path: root/src/testlib/qbenchmarkevent.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-10-23 05:20:33 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-10-23 10:18:25 (GMT)
commit73b14bae17d1bb84c89ca2a908f2cc105dcda015 (patch)
treef22f7edea1412384a2839c55b6a7d05f358dc954 /src/testlib/qbenchmarkevent.cpp
parentfb0af528ed52a90d422b95f6976e21fd670f40b0 (diff)
downloadQt-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/qbenchmarkevent.cpp')
0 files changed, 0 insertions, 0 deletions