summaryrefslogtreecommitdiff
path: root/src/imports/positioning/locationsingleton.cpp
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-06-29 11:05:21 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-07-03 12:40:53 +0000
commitec8152a98b8971af6020dbee5a2885a525a53f88 (patch)
treee93c662aae31d7191e3628ea4f48bd7e07e8f511 /src/imports/positioning/locationsingleton.cpp
parentf97a875d527f3898040e7cbee77339eece21c035 (diff)
downloadqtlocation-ec8152a98b8971af6020dbee5a2885a525a53f88.tar.gz
Fix return type of LocationSingleton::polygon
Previously returning QGeoPath Change-Id: Id4de95918038d5efeefbd44034265f3a3a34d9fa Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/imports/positioning/locationsingleton.cpp')
-rw-r--r--src/imports/positioning/locationsingleton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/positioning/locationsingleton.cpp b/src/imports/positioning/locationsingleton.cpp
index 89b93617..35b0d8d9 100644
--- a/src/imports/positioning/locationsingleton.cpp
+++ b/src/imports/positioning/locationsingleton.cpp
@@ -241,7 +241,7 @@ QGeoPath LocationSingleton::path(const QJSValue &value, qreal width) const
\sa {geopolygon}
\since 5.10
*/
-QGeoPath LocationSingleton::polygon() const
+QGeoPolygon LocationSingleton::polygon() const
{
return QGeoPolygon();
}
@@ -254,7 +254,7 @@ QGeoPath LocationSingleton::polygon() const
\sa {geopolygon}
\since 5.10
*/
-QGeoPath LocationSingleton::polygon(const QVariantList &coordinates) const
+QGeoPolygon LocationSingleton::polygon(const QVariantList &coordinates) const
{
QList<QGeoCoordinate> internalCoordinates;
for (int i = 0; i < coordinates.size(); i++) {