Remove explicit checks for shared_null/empty
authorJoão Abecasis <joao.abecasis@nokia.com>
Fri, 6 Apr 2012 07:24:37 +0000 (09:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Apr 2012 13:50:59 +0000 (15:50 +0200)
commit78b780b9a1ca402ee1f9762f617bb4163684ff34
tree8e724da80424c94edc3bbd3273e731fd4efb3deb
parent2ac4c463afdb8a62b0abb8ba444f34ca50e8979c
Remove explicit checks for shared_null/empty

This eases porting to QArrayData and retains semantics. In append() and
prepend() a conditional was generalized so that no work is done if there
is nothing to add.

Done-with: Jędrzej Nowacki
Change-Id: Ib9e7bb572801b2434fa040cde2bf66dacf595f22
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/corelib/tools/qbytearray.cpp