diff options
author | Brad King <brad.king@kitware.com> | 2019-02-18 14:04:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-02-18 14:05:30 (GMT) |
commit | 03e10384ecb779ba6e02028d6833c5e8cd3541c5 (patch) | |
tree | e047b7a811df56c09eace140841b28ea1d0d0da6 /Source/cmSystemTools.cxx | |
parent | d2489f2fde0adad51272b83e44957860f7b4c57f (diff) | |
parent | ae5e97a00568d15dedea073b58668e646e3c0d2e (diff) | |
download | CMake-03e10384ecb779ba6e02028d6833c5e8cd3541c5.zip CMake-03e10384ecb779ba6e02028d6833c5e8cd3541c5.tar.gz CMake-03e10384ecb779ba6e02028d6833c5e8cd3541c5.tar.bz2 |
Merge topic 'delete_copy_assign'
ae5e97a005 Delete some default constructors and assignment operators
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2968
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index f544fa1..f0e8077 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -521,6 +521,8 @@ public: } free(this->ArgV); } + cmSystemToolsArgV(const cmSystemToolsArgV&) = delete; + cmSystemToolsArgV& operator=(const cmSystemToolsArgV&) = delete; void Store(std::vector<std::string>& args) const { for (char** arg = this->ArgV; arg && *arg; ++arg) { @@ -533,7 +535,7 @@ void cmSystemTools::ParseUnixCommandLine(const char* command, std::vector<std::string>& args) { // Invoke the underlying parser. - cmSystemToolsArgV argv = cmsysSystem_Parse_CommandForUnix(command, 0); + cmSystemToolsArgV argv(cmsysSystem_Parse_CommandForUnix(command, 0)); argv.Store(args); } |