diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2019-11-12 15:04:10 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2019-12-11 19:21:28 -0800 |
commit | c3ddde72ec3be53eeb5d41a69ceec3c407f474a2 (patch) | |
tree | b6d208be5f2e23a7b569924febc76f742b80f339 /src | |
parent | cd7edab940934fe8b100172e3e62e7eea5c354e5 (diff) | |
download | qtlocation-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/location/maps/qgeoroute.h | 1 |
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); |