summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortran.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-03-02 09:41:17 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-05 12:34:01 (GMT)
commit9de0355d4f8f56a71f3d18b1b2c3d50dc8624aae (patch)
treeec6050654d073ec970e81fe51d95cf0110d02efd /Source/cmDependsFortran.h
parent07a7bc0e3fc370eaa5593cffcd07c0ea739cfc9c (diff)
downloadCMake-9de0355d4f8f56a71f3d18b1b2c3d50dc8624aae.zip
CMake-9de0355d4f8f56a71f3d18b1b2c3d50dc8624aae.tar.gz
CMake-9de0355d4f8f56a71f3d18b1b2c3d50dc8624aae.tar.bz2
Modernize memory management
Update internals of various classes.
Diffstat (limited to 'Source/cmDependsFortran.h')
-rw-r--r--Source/cmDependsFortran.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmDependsFortran.h b/Source/cmDependsFortran.h
index 0485115..e3e0d05 100644
--- a/Source/cmDependsFortran.h
+++ b/Source/cmDependsFortran.h
@@ -6,6 +6,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <iosfwd>
+#include <memory>
#include <set>
#include <string>
#include <vector>
@@ -84,7 +85,7 @@ protected:
std::set<std::string> PPDefinitions;
// Internal implementation details.
- cmDependsFortranInternals* Internal = nullptr;
+ std::unique_ptr<cmDependsFortranInternals> Internal;
private:
std::string MaybeConvertToRelativePath(std::string const& base,