QVarLengthArray: use memory on stack if possible
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 9 Oct 2012 14:52:37 +0000 (16:52 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 11 Oct 2012 00:47:52 +0000 (02:47 +0200)
commit47b99599e8676f42234a39a81b07ee06462a2e3a
treea5af429ccf3d095a24470e8d0ab4986e9530dc50
parenta47f21edd61ce033475743a35d6dad35f2e68c48
QVarLengthArray: use memory on stack if possible

After allocating memory on the heap it is ATM not possible to use the
memory on the stack again, QVarLengthArray then uses/resizes only
the memory on the heap. But the memory on stack could be used
if it is big enough.

Change-Id: I566003c25dd1093eb6ba8087a1e5378a11712934
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qvarlengtharray.h