Simple optimisation for the construction of a QSharedPointer
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 23 May 2012 17:54:49 +0000 (19:54 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 18:09:36 +0000 (20:09 +0200)
commit48b38fb2b042fba5a0e1aed4f6d4fa6f29a51af0
tree9d143484ccbdb188fa33a00439c617c14c544009
parent6daea46918d95ed6b66eaea22e1f72658a1f997b
Simple optimisation for the construction of a QSharedPointer

Let the constructor initialise the "value" member.

In the case of create(), which already initialised "value", simply
merge the two functions for more readability.

Change-Id: I5638b3d42af3d0f5988f815e0f91d591fa1897a8
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qsharedpointer_impl.h