diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-10-23 06:08:56 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-10-23 10:18:25 (GMT) |
commit | b119fd7f3fca35fba80b554778581ffba0a68a62 (patch) | |
tree | ff4215aaaff9265b0c4281cd163e16b6c1955452 /doc/src/snippets/code/src_script_qscriptvalueiterator.cpp | |
parent | 73b14bae17d1bb84c89ca2a908f2cc105dcda015 (diff) | |
download | Qt-b119fd7f3fca35fba80b554778581ffba0a68a62.zip Qt-b119fd7f3fca35fba80b554778581ffba0a68a62.tar.gz Qt-b119fd7f3fca35fba80b554778581ffba0a68a62.tar.bz2 |
Avoid calls to public QScriptValue::engine() function
Calls to engine() are mostly done for checking that the "source"
and "target" engines are the same, but we don't want those checks
to slow us down. Use an inline getEngine() function instead.
This makes e.g. QScriptValue::call() ~10% faster for a function
like "function(a, b) { return a + b; }".
Reviewed-by: Olivier Goffart
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalueiterator.cpp')
0 files changed, 0 insertions, 0 deletions