Refactor QByteArray to allow for const data
authorLars Knoll <lars.knoll@nokia.com>
Mon, 11 Jul 2011 21:16:58 +0000 (23:16 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jul 2011 10:28:12 +0000 (12:28 +0200)
commitad35a41739c8e1fb6db62ed37b764448b2e59ece
tree1a5b688d19547362340c70a68647ca7b8e3f6d1c
parent9fea02400c450b4b1a031506655d8c4b165cecd6
Refactor QByteArray to allow for const data

Similar refactoring as done for QString. Make
shared_null read-only, and add support for
compile time generated QByteArrayData.

Add support for properly reserving capacity.

Change-Id: Ie4c41d4caac7b3b4bb1aef40c1c860a30b82edb8
Reviewed-on: http://codereview.qt.nokia.com/1484
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
src/corelib/tools/qbytearray.cpp
src/corelib/tools/qbytearray.h
tests/auto/qbytearray/tst_qbytearray.cpp