qt6-bb10/tests/benchmarks/corelib/tools/qvector
Thiago Macieira 0a78d918f0 Replace qAllocMore with a pair of more useful functions
The first is "exact", not "more": qCalculateBlockSize. It ensures that
there's no overflow in multiplying, adding the header size or when
converting back to an int.

The second is the replacement for qAllocMore: it calculates the block
size like the first, but increases the block size to accommodate future
appends. The number of elements that fit in the block is also returned.

Task-number: QTBUG-41230
Change-Id: I52dd43c12685407bb9a6ffff13f5da09f816e667
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2016-06-09 15:32:14 +00:00
..
main.cpp Updated license headers 2016-01-21 18:55:18 +00:00
outofline.cpp Replace qAllocMore with a pair of more useful functions 2016-06-09 15:32:14 +00:00
qrawvector.h Updated license headers 2016-01-21 18:55:18 +00:00
qvector.pro Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00