diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-02-19 20:55:43 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-02-20 13:22:16 +0000 |
commit | 5a2e0c4d33c2aedb81adea922cfde824b1df92ad (patch) | |
tree | cdecf27227fd15c8faa92b1d54a7acd11fec0772 | |
parent | 8a663114ef47fadfc8db5970b08bafee9afc5628 (diff) |
Options: Add missed move-ctors
Change-Id: I040e90bebe51e587e21b5db3292790a1b2f172f7
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | src/lib/corelib/tools/cleanoptions.cpp | 4 | ||||
-rw-r--r-- | src/lib/corelib/tools/cleanoptions.h | 2 | ||||
-rw-r--r-- | src/lib/corelib/tools/installoptions.cpp | 4 | ||||
-rw-r--r-- | src/lib/corelib/tools/installoptions.h | 2 |
4 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/cleanoptions.cpp b/src/lib/corelib/tools/cleanoptions.cpp index bfedd6467..4fbe77b5d 100644 --- a/src/lib/corelib/tools/cleanoptions.cpp +++ b/src/lib/corelib/tools/cleanoptions.cpp @@ -81,12 +81,16 @@ CleanOptions::CleanOptions(const CleanOptions &other) : d(other.d) { } +CleanOptions::CleanOptions(CleanOptions &&other) Q_DECL_NOEXCEPT = default; + CleanOptions &CleanOptions::operator=(const CleanOptions &other) { d = other.d; return *this; } +CleanOptions &CleanOptions::operator=(CleanOptions &&other) Q_DECL_NOEXCEPT = default; + CleanOptions::~CleanOptions() { } diff --git a/src/lib/corelib/tools/cleanoptions.h b/src/lib/corelib/tools/cleanoptions.h index 5746b0f18..3f67cf5a5 100644 --- a/src/lib/corelib/tools/cleanoptions.h +++ b/src/lib/corelib/tools/cleanoptions.h @@ -51,7 +51,9 @@ class QBS_EXPORT CleanOptions public: CleanOptions(); CleanOptions(const CleanOptions &other); + CleanOptions(CleanOptions &&other) Q_DECL_NOEXCEPT; CleanOptions &operator=(const CleanOptions &other); + CleanOptions &operator=(CleanOptions &&other) Q_DECL_NOEXCEPT; ~CleanOptions(); bool dryRun() const; diff --git a/src/lib/corelib/tools/installoptions.cpp b/src/lib/corelib/tools/installoptions.cpp index 32a7d1652..ebf8037c5 100644 --- a/src/lib/corelib/tools/installoptions.cpp +++ b/src/lib/corelib/tools/installoptions.cpp @@ -92,12 +92,16 @@ InstallOptions::InstallOptions(const InstallOptions &other) : d(other.d) { } +InstallOptions::InstallOptions(InstallOptions &&other) Q_DECL_NOEXCEPT = default; + InstallOptions &InstallOptions::operator=(const InstallOptions &other) { d = other.d; return *this; } +InstallOptions &InstallOptions::operator=(InstallOptions &&other) Q_DECL_NOEXCEPT = default; + InstallOptions::~InstallOptions() { } diff --git a/src/lib/corelib/tools/installoptions.h b/src/lib/corelib/tools/installoptions.h index 7b621cb1b..69e00aae5 100644 --- a/src/lib/corelib/tools/installoptions.h +++ b/src/lib/corelib/tools/installoptions.h @@ -60,7 +60,9 @@ class QBS_EXPORT InstallOptions public: InstallOptions(); InstallOptions(const InstallOptions &other); + InstallOptions(InstallOptions &&other) Q_DECL_NOEXCEPT; InstallOptions &operator=(const InstallOptions &other); + InstallOptions &operator=(InstallOptions &&other) Q_DECL_NOEXCEPT; ~InstallOptions(); static QString defaultInstallRoot(); |