mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Merge topic 'delete_copy_assign'
ae5e97a005 Delete some default constructors and assignment operators
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2968
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user