Remove shared_empty and unsharable_empty from API
authorJoão Abecasis <joao.abecasis@nokia.com>
Thu, 5 Jan 2012 15:29:42 +0000 (16:29 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 6 Jan 2012 20:22:07 +0000 (21:22 +0100)
commitd91b4f0b13926a0861d7e172f14437d20d06332e
tree42448bee7631763d45daeccc11090ca618cc982c
parent3d61c5ca8f00b489435d5bea776b4a4c97c39793
Remove shared_empty and unsharable_empty from API

They still exist and help avoid allocation of "empty" array headers, but
they're no longer part of the public API, thus reducing relocatable
symbols and relocations in inline code.

This means an extra non-inline call on QArrayDataPointer::clear and
setSharable operations, which are (expensive) detaching operations,
anyway.

Change-Id: Iea804e5ddc8af55ebc0951ca17a7a4e8401abc55
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qarraydata.cpp
src/corelib/tools/qarraydata.h
src/corelib/tools/qarraydatapointer.h
tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp