summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2011-08-05 10:40:46 +0200
committerJoão Abecasis <joao.abecasis@nokia.com>2011-08-11 18:58:10 +0200
commit773a6df46243831dee7559f90e33d7eff3c5c71e (patch)
tree327bea4f1229adad5b8516f648d38553a23f90cf /doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
parent023976f9dd48a3deb947905d32d5fc0692da7318 (diff)
downloadqt4-tools-773a6df46243831dee7559f90e33d7eff3c5c71e.tar.gz
Avoid spurious detaching in QDir::to/fromNativeSeparators
The new code avoids non-const detaching operations until needed and uses a pointer into the "raw" QChar data from then on, thus skipping unneeded checks on the reference count for further detaching. These functions are used all the time by the file system classes so this small optimization won't hurt. In particular, it will help users who already use '/' when passing paths into Qt. Reviewed-by: Peter Hartmann
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalueiterator.cpp')
0 files changed, 0 insertions, 0 deletions