summaryrefslogtreecommitdiffstats
path: root/Source/cmArchiveWrite.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-14 16:29:57 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-15 12:25:47 (GMT)
commitae5e97a00568d15dedea073b58668e646e3c0d2e (patch)
tree10ba898956021469c0de5db595ca511c0c83cffd /Source/cmArchiveWrite.h
parente3353a0175fb27bc2967c3df78b8be1c0615b21d (diff)
downloadCMake-ae5e97a00568d15dedea073b58668e646e3c0d2e.zip
CMake-ae5e97a00568d15dedea073b58668e646e3c0d2e.tar.gz
CMake-ae5e97a00568d15dedea073b58668e646e3c0d2e.tar.bz2
Delete some default constructors and assignment operators
They are unused, but if someone used them they would lead to problems since they would copy the internal raw pointers and the destructor would cause double delete
Diffstat (limited to 'Source/cmArchiveWrite.h')
-rw-r--r--Source/cmArchiveWrite.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmArchiveWrite.h b/Source/cmArchiveWrite.h
index 6ecdd63..1f23dae 100644
--- a/Source/cmArchiveWrite.h
+++ b/Source/cmArchiveWrite.h
@@ -58,6 +58,9 @@ public:
~cmArchiveWrite();
+ cmArchiveWrite(const cmArchiveWrite&) = delete;
+ cmArchiveWrite& operator=(const cmArchiveWrite&) = delete;
+
/**
* Add a path (file or directory) to the archive. Directories are
* added recursively. The "path" must be readable on disk, either