summaryrefslogtreecommitdiffstats
path: root/src/location/places/qplaceresult_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-12 22:19:30 +0200
commit48eb0a642688f792eb285ec56082b8f3c09d6605 (patch)
treed95bb40cf8000b39079b006a499c2e6d24e95e8e /src/location/places/qplaceresult_p.h
parentc3e0835c205bf787028ddf8bfec7c5e0330adbd0 (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>
Diffstat (limited to 'src/location/places/qplaceresult_p.h')
-rw-r--r--src/location/places/qplaceresult_p.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/location/places/qplaceresult_p.h b/src/location/places/qplaceresult_p.h
index ac3a527d..03b24548 100644
--- a/src/location/places/qplaceresult_p.h
+++ b/src/location/places/qplaceresult_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.
@@ -59,18 +59,13 @@ QT_BEGIN_NAMESPACE
class QPlaceResultPrivate : public QPlaceSearchResultPrivate
{
public:
- QPlaceResultPrivate();
- QPlaceResultPrivate(const QPlaceResultPrivate &other);
-
- ~QPlaceResultPrivate();
-
bool compare(const QPlaceSearchResultPrivate *other) const override;
Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER(QPlaceResult, QPlaceSearchResult::PlaceResult)
- qreal distance;
+ qreal distance = Q_QNAN;
QPlace place;
- bool sponsored;
+ bool sponsored = false;
};
QT_END_NAMESPACE