mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
Modernize memory management
Update internals of various classes
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -69,7 +70,7 @@ private:
|
||||
void CleanupParser();
|
||||
void SetError(std::string const& msg);
|
||||
|
||||
std::vector<char*> Variables;
|
||||
std::vector<std::unique_ptr<char[]>> Variables;
|
||||
const cmMakefile* Makefile;
|
||||
std::string Result;
|
||||
std::string ErrorString;
|
||||
|
||||
Reference in New Issue
Block a user