From c3ddde72ec3be53eeb5d41a69ceec3c407f474a2 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 12 Nov 2019 15:04:10 -0800 Subject: Fix GCC 9 -Wdeprecated-copy warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/location/maps/qgeoroute.h | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.1