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/places/qplaceeditorial.cpp | |
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/places/qplaceeditorial.cpp')
-rw-r--r-- | src/location/places/qplaceeditorial.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/location/places/qplaceeditorial.cpp b/src/location/places/qplaceeditorial.cpp index 2961da27..bcf27353 100644 --- a/src/location/places/qplaceeditorial.cpp +++ b/src/location/places/qplaceeditorial.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. @@ -42,21 +42,6 @@ QT_USE_NAMESPACE -QPlaceEditorialPrivate::QPlaceEditorialPrivate() -: QPlaceContentPrivate() -{ -} - -QPlaceEditorialPrivate::QPlaceEditorialPrivate(const QPlaceEditorialPrivate &other) -: QPlaceContentPrivate(other), text(other.text), contentTitle(other.contentTitle), - language(other.language) -{ -} - -QPlaceEditorialPrivate::~QPlaceEditorialPrivate() -{ -} - bool QPlaceEditorialPrivate::compare(const QPlaceContentPrivate *other) const { const QPlaceEditorialPrivate *od = static_cast<const QPlaceEditorialPrivate *>(other); |