summaryrefslogtreecommitdiffstats
path: root/src/location/declarativeplaces/qdeclarativeplacecontentmodel_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/qdeclarativeplacecontentmodel_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/qdeclarativeplacecontentmodel_p.h')
-rw-r--r--src/location/declarativeplaces/qdeclarativeplacecontentmodel_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/location/declarativeplaces/qdeclarativeplacecontentmodel_p.h b/src/location/declarativeplaces/qdeclarativeplacecontentmodel_p.h
index 7f8504fa..0b48039c 100644
--- a/src/location/declarativeplaces/qdeclarativeplacecontentmodel_p.h
+++ b/src/location/declarativeplaces/qdeclarativeplacecontentmodel_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.
@@ -127,15 +127,15 @@ protected:
QMap<QString, QDeclarativePlaceUser *>m_users;
private:
- QDeclarativePlace *m_place;
+ QDeclarativePlace *m_place = nullptr;
QPlaceContent::Type m_type;
- int m_batchSize;
- int m_contentCount;
+ int m_batchSize = 1;
+ int m_contentCount = -1;
- QPlaceContentReply *m_reply;
+ QPlaceContentReply *m_reply = nullptr;
QPlaceContentRequest m_nextRequest;
- bool m_complete;
+ bool m_complete = false;
};
QT_END_NAMESPACE