mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
modernize: manage cmCommand instances using unique_ptr.
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "cm_memory.hxx"
|
||||
|
||||
#include "cmCommand.h"
|
||||
|
||||
class cmExecutionStatus;
|
||||
@@ -28,9 +30,9 @@ public:
|
||||
/**
|
||||
* This is a virtual constructor for the command.
|
||||
*/
|
||||
cmCommand* Clone() override
|
||||
std::unique_ptr<cmCommand> Clone() override
|
||||
{
|
||||
return new cmCMakeHostSystemInformationCommand;
|
||||
return cm::make_unique<cmCMakeHostSystemInformationCommand>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user