Don't allocate space for null when using fromRawData
authorJoão Abecasis <joao.abecasis@nokia.com>
Wed, 4 Apr 2012 12:24:01 +0000 (14:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 23:45:24 +0000 (01:45 +0200)
commitb3f12ea1d40b33e459c95317911251b8a8d5c3f8
tree928faeb6ff9d798d8d856aa09b0c48f651c128ff
parent98e50a18eda614caeadaeb7a05fc2f5ab4f735e7
Don't allocate space for null when using fromRawData

In this case we only need to allocate space for the "header" data.

Change-Id: I059627e47a5bae7a02c82d837c826a6ed0fd20fd
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qbytearray.cpp
src/corelib/tools/qstring.cpp