From 48eb0a642688f792eb285ec56082b8f3c09d6605 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Sun, 11 Sep 2022 01:50:21 +0200 Subject: 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 --- src/location/declarativemaps/qdeclarativerectanglemapitem.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/location/declarativemaps/qdeclarativerectanglemapitem.cpp') diff --git a/src/location/declarativemaps/qdeclarativerectanglemapitem.cpp b/src/location/declarativemaps/qdeclarativerectanglemapitem.cpp index 5594ef22..b7d01150 100644 --- a/src/location/declarativemaps/qdeclarativerectanglemapitem.cpp +++ b/src/location/declarativemaps/qdeclarativerectanglemapitem.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. @@ -143,9 +143,8 @@ struct RectangleBackendSelector Q_GLOBAL_STATIC(RectangleBackendSelector, mapRectangleBackendSelector) QDeclarativeRectangleMapItem::QDeclarativeRectangleMapItem(QQuickItem *parent) -: QDeclarativeGeoMapItemBase(parent), m_border(this), m_color(Qt::transparent), m_dirtyMaterial(true), - m_updatingGeometry(false) - , m_d(new QDeclarativeRectangleMapItemPrivateCPU(*this)) + : QDeclarativeGeoMapItemBase(parent), m_border(this), + m_d(new QDeclarativeRectangleMapItemPrivateCPU(*this)) { // ToDo: handle envvar, and switch implementation. m_itemType = QGeoMap::MapRectangle; -- cgit v1.2.1