summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qelapsedtimer.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.co.uk>2010-09-08 02:22:32 (GMT)
committerRobin Burchell <robin.burchell@collabora.co.uk>2010-09-08 08:35:37 (GMT)
commiteb07b8c1a9dc18e0d280604e9095be07b93538bf (patch)
treed064eb6e4c49fbb5d7114c515d014cc80a2b027d /src/corelib/tools/qelapsedtimer.cpp
parentd754440bf7ce91a2f4a56a8873b6bfa546719c08 (diff)
downloadQt-eb07b8c1a9dc18e0d280604e9095be07b93538bf.zip
Qt-eb07b8c1a9dc18e0d280604e9095be07b93538bf.tar.gz
Qt-eb07b8c1a9dc18e0d280604e9095be07b93538bf.tar.bz2
Changes (and minor corrections) to QByteArray documentation.
- Note in operator+= and append() that QByteArray preallocates, meaning that appending data in typical cases does not suffer from allocation overhead. - Note that in the best case, appending or prepending can be O(1) thanks to copy-on-write semantics. Also make it clear that if the shared data is later changed, a full data copy is performed. This was only previously noted in the constructor. - Note that in the worst case, the data copy requires linear time. - Also a slight readability change: 'and that takes' vs 'taking'.
Diffstat (limited to 'src/corelib/tools/qelapsedtimer.cpp')
0 files changed, 0 insertions, 0 deletions