summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlist.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-06-15 15:34:56 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-08-10 03:41:41 +0000
commitd9d9420d8d637064b9a5cc25ea91d96767b31a85 (patch)
treef9427e9675cdf40a61a22fa32f1a5d4b605f1a26 /src/corelib/tools/qlist.h
parentdafa3618d232a611108dcd511e9e7af1aabd361e (diff)
Add a dedicated QListData::realloc_grow for growing QList
This hides the call to ::grow to now two places in the source code, so it will be easier to fix the inefficient call to qAllocMore. Change-Id: I5d1e6f7607404caa96e4ffff13e80a3e4cb0ee93 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com> Reviewed-by: Alex Trotsenko <alex1973tr@gmail.com>
Diffstat (limited to 'src/corelib/tools/qlist.h')
-rw-r--r--src/corelib/tools/qlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h
index e1804e17e5..32e0141d55 100644
--- a/src/corelib/tools/qlist.h
+++ b/src/corelib/tools/qlist.h
@@ -90,6 +90,7 @@ struct Q_CORE_EXPORT QListData {
Data *detach(int alloc);
Data *detach_grow(int *i, int n);
void realloc(int alloc);
+ void realloc_grow(int growth);
inline void dispose() { dispose(d); }
static void dispose(Data *d);
static const Data shared_null;