mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
modernize: manage cmCommand instances using unique_ptr.
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "cm_memory.hxx"
|
||||
|
||||
#include "cmCommand.h"
|
||||
|
||||
class cmExecutionStatus;
|
||||
@@ -15,7 +17,10 @@ class cmExecutionStatus;
|
||||
class cmVariableRequiresCommand : public cmCommand
|
||||
{
|
||||
public:
|
||||
cmCommand* Clone() override { return new cmVariableRequiresCommand; }
|
||||
std::unique_ptr<cmCommand> Clone() override
|
||||
{
|
||||
return cm::make_unique<cmVariableRequiresCommand>();
|
||||
}
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user