mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
modernize: manage cmCommand instances using unique_ptr.
This commit is contained in:
+2
-1
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -75,7 +76,7 @@ public:
|
||||
/**
|
||||
* This is a virtual constructor for the command.
|
||||
*/
|
||||
virtual cmCommand* Clone() = 0;
|
||||
virtual std::unique_ptr<cmCommand> Clone() = 0;
|
||||
|
||||
/**
|
||||
* Return the last error string.
|
||||
|
||||
Reference in New Issue
Block a user