QtPositioning: make comparison operators hidden friends
This patch changes all comparison operators in QtPositioning to
hidden friends, so that they can be found only by ADL and do not
pollute the global namespace.
Note that the comparison operators are removed from the
QGeoShape's child classes. Only the friend operators for the base
QGeoShape class itself are implemented. The ADL will manage to
correctly detect these operators, and then the virtual methods
of the private d-pointers will be called.
Task-number: QTBUG-95163
Pick-to: 6.2
Change-Id: Ice348a8a219395b0470cd0202b1fcc6673d575e2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | 4fc52ffe0b236f7f15841d881102f8b485d50df7 |
| parent | d454e6131c5fd74826e87ca9b72315e3b883ee30 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Mon, 19 Jul 2021 10:11:34 +0200 |
- M src/positioning/qgeoaddress.cpp
- M src/positioning/qgeoaddress.h
- M src/positioning/qgeoareamonitorinfo.cpp
- M src/positioning/qgeoareamonitorinfo.h
- M src/positioning/qgeocircle.cpp
- M src/positioning/qgeocircle.h
- M src/positioning/qgeocoordinate.cpp
- M src/positioning/qgeocoordinate.h
- M src/positioning/qgeolocation.cpp
- M src/positioning/qgeolocation.h
- M src/positioning/qgeopath.cpp
- M src/positioning/qgeopath.h
- M src/positioning/qgeopolygon.cpp
- M src/positioning/qgeopolygon.h
- M src/positioning/qgeopositioninfo.cpp
- M src/positioning/qgeopositioninfo.h
- M src/positioning/qgeorectangle.cpp
- M src/positioning/qgeorectangle.h
- M src/positioning/qgeosatelliteinfo.cpp
- M src/positioning/qgeosatelliteinfo.h
- M src/positioning/qgeoshape.cpp
- M src/positioning/qgeoshape.h