diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-05-31 10:44:12 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-06-08 09:22:01 +0000 |
commit | e45ded979d7838847b7fe057f0a2d6c15b517de2 (patch) | |
tree | 63fab46ba63a7b96183e1634d77fb94bab8debcb /src/src.pro | |
parent | 1768efa1761ec8fb54a734a4297a29b3d591d8ae (diff) | |
download | qtlocation-e45ded979d7838847b7fe057f0a2d6c15b517de2.tar.gz |
Use QPointer to avoid dangling QDeclarativeGeoRoute in NavigatorPrivate
QDeclarativeNavigator::setRoute takes a QDeclarativeGeoRoute.
This type is not COW, and could be destroyed by the user or the route
model.
This patch stores it inside a QPointer.
It also stores the contained QGeoRoute, that is what the navigation
engines are supposed to use to perform navigation, and is COW.
Task-number: QTBUG-68536
Change-Id: I73fb79faeb3ac9efefcbd778ee106d29fbf26658
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/src.pro')
-rw-r--r-- | src/src.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src.pro b/src/src.pro index 87ea7983..417e2272 100644 --- a/src/src.pro +++ b/src/src.pro @@ -17,7 +17,7 @@ positioning.depends = clip2tri qtHaveModule(quick) { SUBDIRS += positioningquick location positioningquick.depends += positioning - location.depends += positioning clip2tri + location.depends += positioningquick clip2tri plugins.depends += location |