diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2019-06-21 00:41:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-24 13:36:09 (GMT) |
commit | 5e52de7d5708c5d2faf00837bf5f10ed024cced1 (patch) | |
tree | 78012dbe66b15c98b4bee75730d7693583a99d4f /Source/cmState.cxx | |
parent | cecf7e61c4816e4a3bb55df243c6bf84f6df6e58 (diff) | |
download | CMake-5e52de7d5708c5d2faf00837bf5f10ed024cced1.zip CMake-5e52de7d5708c5d2faf00837bf5f10ed024cced1.tar.gz CMake-5e52de7d5708c5d2faf00837bf5f10ed024cced1.tar.bz2 |
modermize: replace some raw pointers w/ `unique_ptr`
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 091c2e0..587cda5 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -23,14 +23,12 @@ cmState::cmState() { - this->CacheManager = new cmCacheManager; - this->GlobVerificationManager = new cmGlobVerificationManager; + this->CacheManager = cm::make_unique<cmCacheManager>(); + this->GlobVerificationManager = cm::make_unique<cmGlobVerificationManager>(); } cmState::~cmState() { - delete this->CacheManager; - delete this->GlobVerificationManager; cmDeleteAll(this->BuiltinCommands); cmDeleteAll(this->ScriptedCommands); } |