summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2019-11-12 15:04:10 -0800
committerThiago Macieira <thiago.macieira@intel.com>2019-12-11 19:21:28 -0800
commitc3ddde72ec3be53eeb5d41a69ceec3c407f474a2 (patch)
treeb6d208be5f2e23a7b569924febc76f742b80f339
parentcd7edab940934fe8b100172e3e62e7eea5c354e5 (diff)
downloadqtlocation-c3ddde72ec3be53eeb5d41a69ceec3c407f474a2.tar.gz
Fix GCC 9 -Wdeprecated-copy warning
error: implicitly-declared ‘QGeoRouteLeg& QGeoRouteLeg::operator=(const QGeoRouteLeg&)’ is deprecated [-Werror=deprecated-copy] note: because ‘QGeoRouteLeg’ has user-provided ‘QGeoRouteLeg::QGeoRouteLeg(const QGeoRouteLeg&)’ Change-Id: Iad959315ad374ef288f5fffd15d68cba005f9e01 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/maps/qgeoroute.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/location/maps/qgeoroute.h b/src/location/maps/qgeoroute.h
index 363ca61b..8feafa4f 100644
--- a/src/location/maps/qgeoroute.h
+++ b/src/location/maps/qgeoroute.h
@@ -109,6 +109,7 @@ class Q_LOCATION_EXPORT QGeoRouteLeg: public QGeoRoute
public:
QGeoRouteLeg();
QGeoRouteLeg(const QGeoRouteLeg &other);
+ QGeoRouteLeg &operator=(const QGeoRouteLeg &other) = default;
~QGeoRouteLeg();
void setLegIndex(int idx);