Make clear() use the shared null inline
authorJoão Abecasis <joao.abecasis@nokia.com>
Wed, 1 Feb 2012 10:51:08 +0000 (11:51 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 11:59:32 +0000 (12:59 +0100)
commit632840cb0f5ad355d87fc040b015d04af86371ec
treebc0f292c06ecbc97011346ef1af6eb1f4400fe4c
parente32d417b5129171be09a32bb3a65dca6f7464d8d
Make clear() use the shared null inline

There isn't a good reason to impose the additional library call and
using the shared null here matches existing behavior in QByteArray,
QString and QVector.

Change-Id: Idd0bb9c7411db52630402534a11d87cbf2b1e7ba
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/corelib/tools/qarraydatapointer.h
tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp