summaryrefslogtreecommitdiff
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-18 14:04:51 +0000
committerKitware Robot <kwrobot@kitware.com>2019-02-18 09:05:30 -0500
commit03e10384ecb779ba6e02028d6833c5e8cd3541c5 (patch)
treee047b7a811df56c09eace140841b28ea1d0d0da6 /Source/cmSystemTools.cxx
parentd2489f2fde0adad51272b83e44957860f7b4c57f (diff)
parentae5e97a00568d15dedea073b58668e646e3c0d2e (diff)
downloadcmake-03e10384ecb779ba6e02028d6833c5e8cd3541c5.tar.gz
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.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index f544fa171d..f0e8077e7f 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);
}