diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2012-02-14 13:58:22 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-20 00:22:40 +0100 |
commit | f2f8d5dc1c74024827019378424dcf59ba3096ed (patch) | |
tree | a73bb19ba75a8b4dc664f6201bb5bd6cde139fb4 /src/location/maps/qgeocodingmanagerengine.cpp | |
parent | 9b7cf2b63fb9f9ff7b3c5f05b8e916c85c66403b (diff) |
Convert QGeoBoundingArea to use value type semantics.
This simplifies the API while keeping the same functionality.
Objects of type QGeoBoundingCircle and QGeoBoundingBox can still
be passed around as QGeoBoundingArea without losing their identity.
QGeoBoundingArea::isValid(), ::isEmpty() and ::contains() function
as one would expect.
This change removes the necessity of the application developer to
track and delete pointers.
Change-Id: I1ee70af90319da4c77225c6a0a03601d5ff431f1
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/maps/qgeocodingmanagerengine.cpp')
-rw-r--r-- | src/location/maps/qgeocodingmanagerengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/maps/qgeocodingmanagerengine.cpp b/src/location/maps/qgeocodingmanagerengine.cpp index a2ffe1b5..5d9412e2 100644 --- a/src/location/maps/qgeocodingmanagerengine.cpp +++ b/src/location/maps/qgeocodingmanagerengine.cpp @@ -175,7 +175,7 @@ int QGeocodingManagerEngine::managerVersion() const QGeocodeReply::error() with deleteLater(). */ QGeocodeReply* QGeocodingManagerEngine::geocode(const QGeoAddress &address, - QGeoBoundingArea *bounds) + const QGeoBoundingArea &bounds) { Q_UNUSED(address) Q_UNUSED(bounds) @@ -220,7 +220,7 @@ QGeocodeReply* QGeocodingManagerEngine::geocode(const QGeoAddress &address, QGeocodeReply::error() with deleteLater(). */ QGeocodeReply* QGeocodingManagerEngine::reverseGeocode(const QGeoCoordinate &coordinate, - QGeoBoundingArea *bounds) + const QGeoBoundingArea &bounds) { Q_UNUSED(coordinate) Q_UNUSED(bounds) @@ -260,7 +260,7 @@ QGeocodeReply* QGeocodingManagerEngine::reverseGeocode(const QGeoCoordinate &coo QGeocodeReply* QGeocodingManagerEngine::geocode(const QString &address, int limit, int offset, - QGeoBoundingArea *bounds) + const QGeoBoundingArea &bounds) { Q_UNUSED(address) Q_UNUSED(limit) |