Go to file
João Abecasis 7919c0529e Add AllocationOption::Grow
This is meant to reduce the number of allocations on growing containers.
It serves the same purpose as the existing qAllocMore which is currently
used by container classes.

While only a container knows when it is growing, it doesn't need to care
how that information is used. qAllocMore is currently treated as a
black-box and its result is (basically) forwarded blindly to an allocate
function. In that respect, container code using qAllocMore acts as an
intermediary.

By merging that functionality in the allocate function itself we offer
the same benefits without the intermediaries, allowing for simpler code
and centralized decisions on memory allocation.

Once all users of qAllocMore get ported to QArrayData and
QArrayData::allocate, qAllocMore can be moved or more closely integrated
into qarraydata.cpp and qtools_p.h can be dropped.

Change-Id: I4c09bf7df274b45c399082fc7113a18e4641c5f0
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2012-02-29 14:31:15 +01:00
bin Report failure to open deprecated header file 2012-02-23 04:04:59 +01:00
config.tests Remove stale QWS considerations from configure 2012-02-28 11:48:12 +01:00
dist Rename QMetaMethod::signature() to methodSignature() 2012-02-29 12:50:14 +01:00
doc/src Rename QMetaMethod::signature() to methodSignature() 2012-02-29 12:50:14 +01:00
examples Use new plugin system in qtbase. 2012-02-27 13:28:21 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Add a new qmake feature to support OpenGL ES 1 apps 2012-02-28 22:35:24 +01:00
qmake resolve relative spec paths already on the command line 2012-02-28 09:13:47 +01:00
src Add AllocationOption::Grow 2012-02-29 14:31:15 +01:00
tests Add AllocationOption::Grow 2012-02-29 14:31:15 +01:00
tools Make configure.exe only detect each compiler once 2012-02-27 20:52:45 +01:00
util clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add src/concurrent/qtconcurrentversion.h to .gitignore 2012-02-23 09:01:18 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure configure: fixed qconfig.h symlink warnings 2012-02-28 12:07:28 +01:00
configure.bat bootstrap configure.exe on windows 2012-02-16 01:56:21 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Add configure, sync.profile, and header.* to OTHER_FILES in qtbase.pro 2012-02-08 07:40:03 +01:00
sync.profile Add qprocessordetection.h 2012-02-08 12:33:11 +01:00