summaryrefslogtreecommitdiffstats
path: root/src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h
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-14 17:17:25 +0200
commit6c5448e4825071405cd065807971f4d851c0a037 (patch)
tree7c4ab76f53f445b27092c9250c94ae79186a1d89 /src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h
parenta2f3632ffd8aedd0a4896357c4ad92725670dbad (diff)
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> (cherry picked from commit 48eb0a642688f792eb285ec56082b8f3c09d6605) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h')
-rw-r--r--src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h b/src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h
index 1a11654d..4ecd36ec 100644
--- a/src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h
+++ b/src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h
@@ -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,7 +173,7 @@ private:
void removePageRow(int row);
QList<QDeclarativeCategory *> m_categories;
- QLocation::VisibilityScope m_visibilityScope;
+ QLocation::VisibilityScope m_visibilityScope = QLocation::UnspecifiedVisibility;
QMap<int, QList<QPlaceSearchResult>> m_pages;
QList<QPlaceSearchResult> m_results;
@@ -181,7 +181,7 @@ private:
QList<QDeclarativePlace *> m_places;
QList<QDeclarativePlaceIcon *> m_icons;
- QDeclarativeGeoServiceProvider *m_favoritesPlugin;
+ QDeclarativeGeoServiceProvider *m_favoritesPlugin = nullptr;
QVariantMap m_matchParameters;
bool m_incremental = false;
};