diff options
-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(); |