QtPositioning: refactor QGeoPositionInfo


The following changes were implemented for the class:
- Use QExplicitlySharedDataPointer for private d-ptr.
- Implement move-constructor and move-assignment operator.
  The moved-from object is left in partially-formed state. Such
  behavior is documented.
- Use Q_DECLARE_SHARED to declare the typeinfo as Q_RELOCATABLE_TYPE
  and provide a free swap() overload.
- Provide a qHash() overload.
- Provide a QTest::toString() overload.

All these changes are common pattern for Qt value classes.
The benchmark shows that it results in slight performance drop while
constructing a brand new object (most probably because of the overhead
of QSharedData and QExplicitlySharedDataPointer), but also gives a
comparable performance boost for copy constructor and copy assignment.
And of course a significant performance boost on move-operations (which
were just copy-operations previously). Other API calls didn't have any
significant performance impact.

Task-number: QTBUG-90491
Change-Id: I3db93e89e3bc73d0322857401c1c1dd2bd469c27
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commitdc868904ed964d8bab03c9f58d6788505f64dba9
parent69df41c30e89ea8ce9e759b75762f57481f54649
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 9 Feb 2021 17:08:39 +0100