mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05: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,9 +17,9 @@ class cmExecutionStatus;
|
||||
class cmExportLibraryDependenciesCommand : public cmCommand
|
||||
{
|
||||
public:
|
||||
cmCommand* Clone() override
|
||||
std::unique_ptr<cmCommand> Clone() override
|
||||
{
|
||||
return new cmExportLibraryDependenciesCommand;
|
||||
return cm::make_unique<cmExportLibraryDependenciesCommand>();
|
||||
}
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) override;
|
||||
|
||||
Reference in New Issue
Block a user