summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-14 16:20:53 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-17 12:58:27 (GMT)
commitfaacb90a13f87d32aaf3e5c45cfd48af7e84b733 (patch)
tree29a685d7d7849010771a57382cd713a5ffa5f271 /Source/cmELF.h
parent74ad28fa6a05d033eb99db949eb095fc192c34ad (diff)
downloadCMake-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.h3
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;
};