summaryrefslogtreecommitdiffstats
path: root/Source/cmFileMonitor.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-12-18 17:37:05 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-12-19 10:15:17 (GMT)
commitdc2daa6860285be066813d24ecca88f61ae3e18a (patch)
treeefedf084c371b60515a3e71f5d50c03ca64d55b9 /Source/cmFileMonitor.h
parent23130c539fc6ae1f4809e4c639a1a15a5f299c48 (diff)
downloadCMake-dc2daa6860285be066813d24ecca88f61ae3e18a.zip
CMake-dc2daa6860285be066813d24ecca88f61ae3e18a.tar.gz
CMake-dc2daa6860285be066813d24ecca88f61ae3e18a.tar.bz2
cmFileMonitor: modernize memory management
Diffstat (limited to 'Source/cmFileMonitor.h')
-rw-r--r--Source/cmFileMonitor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmFileMonitor.h b/Source/cmFileMonitor.h
index 7ffc929..b510a2c 100644
--- a/Source/cmFileMonitor.h
+++ b/Source/cmFileMonitor.h
@@ -5,6 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <functional>
+#include <memory>
#include <string>
#include <vector>
@@ -30,5 +31,5 @@ public:
std::vector<std::string> WatchedDirectories() const;
private:
- cmRootWatcher* Root;
+ std::unique_ptr<cmRootWatcher> Root;
};