diff options
author | Brad King <brad.king@kitware.com> | 2020-10-22 13:37:41 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-27 14:58:15 -0400 |
commit | 2a640d41998b2b61ed23090cc6edaf6445caf6ed (patch) | |
tree | c53af558ab4d2e19877ee7d0035b9ff50bf29b2c /Source/cmCustomCommandGenerator.h | |
parent | fab772c3e16862c7e8200b1e6a77d7f8abc1055e (diff) | |
download | cmake-2a640d41998b2b61ed23090cc6edaf6445caf6ed.tar.gz |
cmCustomCommandGenerator: Add move operations
Diffstat (limited to 'Source/cmCustomCommandGenerator.h')
-rw-r--r-- | Source/cmCustomCommandGenerator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCustomCommandGenerator.h b/Source/cmCustomCommandGenerator.h index 8b5259d269..c783b65f4d 100644 --- a/Source/cmCustomCommandGenerator.h +++ b/Source/cmCustomCommandGenerator.h @@ -14,7 +14,7 @@ class cmLocalGenerator; class cmCustomCommandGenerator { - cmCustomCommand const& CC; + cmCustomCommand const* CC; std::string Config; cmLocalGenerator* LG; bool OldStyle; @@ -33,9 +33,11 @@ public: cmCustomCommandGenerator(cmCustomCommand const& cc, std::string config, cmLocalGenerator* lg, bool transformDepfile = true); cmCustomCommandGenerator(const cmCustomCommandGenerator&) = delete; + cmCustomCommandGenerator(cmCustomCommandGenerator&&) = default; cmCustomCommandGenerator& operator=(const cmCustomCommandGenerator&) = delete; - cmCustomCommand const& GetCC() const { return this->CC; } + cmCustomCommandGenerator& operator=(cmCustomCommandGenerator&&) = default; + cmCustomCommand const& GetCC() const { return *(this->CC); } unsigned int GetNumberOfCommands() const; std::string GetCommand(unsigned int c) const; void AppendArguments(unsigned int c, std::string& cmd) const; |