diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-14 16:20:53 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-17 12:58:27 (GMT) |
commit | faacb90a13f87d32aaf3e5c45cfd48af7e84b733 (patch) | |
tree | 29a685d7d7849010771a57382cd713a5ffa5f271 /Source/cmELF.h | |
parent | 74ad28fa6a05d033eb99db949eb095fc192c34ad (diff) | |
download | CMake-faacb90a13f87d32aaf3e5c45cfd48af7e84b733.zip CMake-faacb90a13f87d32aaf3e5c45cfd48af7e84b733.tar.gz CMake-faacb90a13f87d32aaf3e5c45cfd48af7e84b733.tar.bz2 |
cmELF: Modernize to use std::unique_ptr instead of new/delete
Diffstat (limited to 'Source/cmELF.h')
-rw-r--r-- | Source/cmELF.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmELF.h b/Source/cmELF.h index 987f0c3..afef654 100644 --- a/Source/cmELF.h +++ b/Source/cmELF.h @@ -6,6 +6,7 @@ #include "cmConfigure.h" // IWYU pragma: keep #include <iosfwd> +#include <memory> #include <string> #include <utility> #include <vector> @@ -108,7 +109,7 @@ public: private: friend class cmELFInternal; bool Valid() const; - cmELFInternal* Internal; + std::unique_ptr<cmELFInternal> Internal; std::string ErrorMessage; }; |