Make QVectorData::shared_null const
authorBradley T. Hughes <bradley.hughes@nokia.com>
Fri, 9 Sep 2011 09:07:48 +0000 (11:07 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 26 Sep 2011 14:05:36 +0000 (16:05 +0200)
commit54255f7c5e7cecc58076c412183ce2d877a34c18
tree29cddf2af89a144f794c86cb24cb1d5eb0db1de1
parent67fec4a5f5f164a24481921eab57955ce0d607f0
Make QVectorData::shared_null const

Similar to QByteArray and QString, keep the shared_null in shareable
memory and never modify it.

Since QRegion uses the internals of QVector, we need to make sure that
QRegion also never modifies the shared_null.

Change-Id: I809e5873fe414138f97d501e05458b73c04b18fb
Reviewed-on: http://codereview.qt-project.org/4529
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qvector.cpp
src/corelib/tools/qvector.h
src/gui/painting/qregion.cpp