summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeoroute_p.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-06-10 20:38:50 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-06-16 16:08:59 +0200
commita0ed5f9f9c8acf1b4b631b69774ac67ac37739bc (patch)
tree83afaa8ebeb5abd6571b2842f7a68399e652b508 /src/location/maps/qgeoroute_p.h
parent5164413d711409c64f153a2049d587580b15fe5e (diff)
downloadqtlocation-a0ed5f9f9c8acf1b4b631b69774ac67ac37739bc.tar.gz
Silence build warnings, fix build errors
Replace various deprecated APIs with their supported Qt 6 versions. Most notably, replace QScopedPointer with std::unique_ptr, as the code frequently use deprecated QScopedPointer::swap. Change-Id: If9cb0be89423fd310073709eb390401d74240153 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps/qgeoroute_p.h')
-rw-r--r--src/location/maps/qgeoroute_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeoroute_p.h b/src/location/maps/qgeoroute_p.h
index 04de491d..7fb3f39d 100644
--- a/src/location/maps/qgeoroute_p.h
+++ b/src/location/maps/qgeoroute_p.h
@@ -184,7 +184,7 @@ public:
QList<QGeoRouteLeg> m_legs;
QGeoRouteSegment m_firstSegment;
mutable int m_numSegments;
- QScopedPointer<QGeoRoute> m_containingRoute;
+ std::unique_ptr<QGeoRoute> m_containingRoute;
QVariantMap m_extendedAttributes;
int m_legIndex = 0;
};