From f2f8d5dc1c74024827019378424dcf59ba3096ed Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Tue, 14 Feb 2012 13:58:22 +1000 Subject: 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 --- src/imports/location/qdeclarativegeocodemodel_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imports/location/qdeclarativegeocodemodel_p.h') diff --git a/src/imports/location/qdeclarativegeocodemodel_p.h b/src/imports/location/qdeclarativegeocodemodel_p.h index ea15e53f..13d727bc 100644 --- a/src/imports/location/qdeclarativegeocodemodel_p.h +++ b/src/imports/location/qdeclarativegeocodemodel_p.h @@ -170,7 +170,7 @@ protected: private: void setLocations(const QList &locations); - QGeoBoundingArea* boundingArea(); + QGeoBoundingArea boundingArea(); void abortRequest(); QGeocodeReply* reply_; -- cgit v1.2.1