summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptvalue.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-19 14:19:11 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-22 17:12:16 (GMT)
commit96a3d36a33dc5c1c7e414c873316027fab6cecf9 (patch)
treeac266a143ab35d3e39bb97cf6d9c8d357d9049d0 /doc/src/snippets/code/src_script_qscriptvalue.cpp
parent0eafbdd480440e413f2fd9cdf4f19354be2a0bdb (diff)
downloadQt-96a3d36a33dc5c1c7e414c873316027fab6cecf9.zip
Qt-96a3d36a33dc5c1c7e414c873316027fab6cecf9.tar.gz
Qt-96a3d36a33dc5c1c7e414c873316027fab6cecf9.tar.bz2
create temporaries more intelligently
we already know that we are dealing with a movable type, so it is safe to keep a temporary copy of the raw data instead of going through the copy c'tor. this way we save a pretty useless ref()/deref() pair for each and every insertion of an implicitly shared type into a QList. the QtPodForSize class is somewhat ugly. we should use QIntegerForSize, but that's not possible without having separate template specializations, which is not possible without some bigger changes to the qt type info system. it will be beautified in due time. :) Reviewed-by: joao
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalue.cpp')
0 files changed, 0 insertions, 0 deletions