aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-05-03 22:14:06 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2019-05-09 12:06:15 +0000
commitfe497bfaa009b9dff1e7f3fb68d6207968a247c5 (patch)
treee5fcd77b661c26bdf83e7434948fb491cf637254 /src
parent0c7fc9258c3c7eae06e79281caf6adb54f31d895 (diff)
Use = default in ProjectData and friends
Change-Id: Ic885bba12107b2a9f116dd8a33f1cad12ced1764 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/lib/corelib/api/projectdata.cpp70
1 files changed, 15 insertions, 55 deletions
diff --git a/src/lib/corelib/api/projectdata.cpp b/src/lib/corelib/api/projectdata.cpp
index 1b40916a1..56700b8be 100644
--- a/src/lib/corelib/api/projectdata.cpp
+++ b/src/lib/corelib/api/projectdata.cpp
@@ -63,23 +63,15 @@ GroupData::GroupData() : d(new Internal::GroupDataPrivate)
{
}
-GroupData::GroupData(const GroupData &other) : d(other.d)
-{
-}
+GroupData::GroupData(const GroupData &other) = default;
GroupData::GroupData(GroupData &&) Q_DECL_NOEXCEPT = default;
-GroupData &GroupData::operator=(const GroupData &other)
-{
- d = other.d;
- return *this;
-}
+GroupData &GroupData::operator=(const GroupData &other) = default;
GroupData &GroupData::operator=(GroupData &&) Q_DECL_NOEXCEPT = default;
-GroupData::~GroupData()
-{
-}
+GroupData::~GroupData() = default;
/*!
* \brief Returns true if and only if the Group holds data that was initialized by Qbs.
@@ -216,23 +208,15 @@ ArtifactData::ArtifactData() : d(new Internal::ArtifactDataPrivate)
{
}
-ArtifactData::ArtifactData(const ArtifactData &other) : d(other.d)
-{
-}
+ArtifactData::ArtifactData(const ArtifactData &other) = default;
ArtifactData::ArtifactData(ArtifactData &&) Q_DECL_NOEXCEPT = default;
-ArtifactData &ArtifactData::operator=(const ArtifactData &other)
-{
- d = other.d;
- return *this;
-}
+ArtifactData &ArtifactData::operator=(const ArtifactData &other) = default;
ArtifactData &ArtifactData::operator=(ArtifactData &&) Q_DECL_NOEXCEPT = default;
-ArtifactData::~ArtifactData()
-{
-}
+ArtifactData::~ArtifactData() = default;
/*!
* \brief Returns true if and only if this object holds data that was initialized by Qbs.
@@ -329,23 +313,15 @@ InstallData::InstallData() : d(new Internal::InstallDataPrivate)
{
}
-InstallData::InstallData(const InstallData &other) : d(other.d)
-{
-}
+InstallData::InstallData(const InstallData &other) = default;
InstallData::InstallData(InstallData &&) Q_DECL_NOEXCEPT = default;
-InstallData &InstallData::operator=(const InstallData &other)
-{
- d = other.d;
- return *this;
-}
+InstallData &InstallData::operator=(const InstallData &other) = default;
InstallData &InstallData::operator=(InstallData &&) Q_DECL_NOEXCEPT = default;
-InstallData::~InstallData()
-{
-}
+InstallData::~InstallData() = default;
/*!
* \brief Returns true if and only if this object holds data that was initialized by Qbs.
@@ -420,23 +396,15 @@ ProductData::ProductData() : d(new Internal::ProductDataPrivate)
{
}
-ProductData::ProductData(const ProductData &other) : d(other.d)
-{
-}
+ProductData::ProductData(const ProductData &other) = default;
ProductData::ProductData(ProductData &&) Q_DECL_NOEXCEPT = default;
-ProductData &ProductData::operator=(const ProductData &other)
-{
- d = other.d;
- return *this;
-}
+ProductData &ProductData::operator=(const ProductData &other) = default;
ProductData &ProductData::operator=(ProductData &&) Q_DECL_NOEXCEPT = default;
-ProductData::~ProductData()
-{
-}
+ProductData::~ProductData() = default;
/*!
* \brief Returns true if and only if the Product holds data that was initialized by Qbs.
@@ -697,23 +665,15 @@ ProjectData::ProjectData() : d(new Internal::ProjectDataPrivate)
{
}
-ProjectData::ProjectData(const ProjectData &other) : d(other.d)
-{
-}
+ProjectData::ProjectData(const ProjectData &other) = default;
ProjectData::ProjectData(ProjectData &&) Q_DECL_NOEXCEPT = default;
-ProjectData &ProjectData::operator =(const ProjectData &other)
-{
- d = other.d;
- return *this;
-}
+ProjectData &ProjectData::operator =(const ProjectData &other) = default;
ProjectData &ProjectData::operator=(ProjectData &&) Q_DECL_NOEXCEPT = default;
-ProjectData::~ProjectData()
-{
-}
+ProjectData::~ProjectData() = default;
/*!
* \brief Returns true if and only if the Project holds data that was initialized by Qbs.