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-14 17:17:25 +0200 |
commit | 6c5448e4825071405cd065807971f4d851c0a037 (patch) | |
tree | 7c4ab76f53f445b27092c9250c94ae79186a1d89 /src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h | |
parent | a2f3632ffd8aedd0a4896357c4ad92725670dbad (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.h | 6 |
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; }; |