summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-11 01:50:21 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-12 22:19:30 +0200
commit48eb0a642688f792eb285ec56082b8f3c09d6605 (patch)
treed95bb40cf8000b39079b006a499c2e6d24e95e8e /src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
parentc3e0835c205bf787028ddf8bfec7c5e0330adbd0 (diff)
downloadqtlocation-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/qdeclarativepolylinemapitem.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativepolylinemapitem.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp b/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
index a7a3c21c..edfe5e6d 100644
--- a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
+++ b/src/location/declarativemaps/qdeclarativepolylinemapitem.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.
@@ -316,10 +316,8 @@ static QList<QList<QDoubleVector2D> > clipLine(
\since 5.14
*/
-QDeclarativeMapLineProperties::QDeclarativeMapLineProperties(QObject *parent) :
- QObject(parent),
- width_(1.0),
- color_(Qt::black)
+QDeclarativeMapLineProperties::QDeclarativeMapLineProperties(QObject *parent)
+ : QObject(parent)
{
}
@@ -927,11 +925,8 @@ struct PolylineBackendSelector
Q_GLOBAL_STATIC(PolylineBackendSelector, mapPolylineBackendSelector)
QDeclarativePolylineMapItem::QDeclarativePolylineMapItem(QQuickItem *parent)
-: QDeclarativeGeoMapItemBase(parent),
- m_line(this),
- m_dirtyMaterial(true),
- m_updatingGeometry(false),
- m_d(new QDeclarativePolylineMapItemPrivateCPU(*this))
+ : QDeclarativeGeoMapItemBase(parent), m_line(this),
+ m_d(new QDeclarativePolylineMapItemPrivateCPU(*this))
{
m_itemType = QGeoMap::MapPolyline;
m_geopath = QGeoPathEager();