diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-11 01:50:21 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-12 22:19:30 +0200 |
commit | 48eb0a642688f792eb285ec56082b8f3c09d6605 (patch) | |
tree | d95bb40cf8000b39079b006a499c2e6d24e95e8e /src/location/declarativemaps/qdeclarativegeoroutemodel.cpp | |
parent | c3e0835c205bf787028ddf8bfec7c5e0330adbd0 (diff) | |
download | qtlocation-48eb0a642688f792eb285ec56082b8f3c09d6605.tar.gz |
Constructor cleanup
Use member initialization, and remove unneeded implementations of
special member functions. Fix coding style in related code.
Change-Id: I3326e3f331762a9c1ad3c3baac0de02fc5bb2b44
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeoroutemodel.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeoroutemodel.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp b/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp index f1cafc9a..c1084bda 100644 --- a/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp +++ b/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2015 The Qt Company Ltd. +** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtLocation module of the Qt Toolkit. @@ -173,13 +173,7 @@ static QList<QVariantMap> waypointMetadata(const QList<QDeclarativeGeoWaypoint * */ QDeclarativeGeoRouteModel::QDeclarativeGeoRouteModel(QObject *parent) - : QAbstractListModel(parent), - complete_(false), - plugin_(0), - routeQuery_(0), - autoUpdate_(false), - status_(QDeclarativeGeoRouteModel::Null), - error_(QDeclarativeGeoRouteModel::NoError) + : QAbstractListModel(parent) { } @@ -757,12 +751,12 @@ void QDeclarativeGeoRouteModel::routingError(QGeoRouteReply *reply, */ QDeclarativeGeoRouteQuery::QDeclarativeGeoRouteQuery(QObject *parent) -: QObject(parent), complete_(false), m_excludedAreaCoordinateChanged(false) + : QObject(parent) { } QDeclarativeGeoRouteQuery::QDeclarativeGeoRouteQuery(const QGeoRouteRequest &request, QObject *parent) -: QObject(parent), request_(request), complete_(false), m_excludedAreaCoordinateChanged(false) + : QObject(parent), request_(request) { // Extra params assumed to be already set in the request. // Init waypoints |