diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2019-02-14 16:29:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-15 12:25:47 (GMT) |
commit | ae5e97a00568d15dedea073b58668e646e3c0d2e (patch) | |
tree | 10ba898956021469c0de5db595ca511c0c83cffd /Source/CPack | |
parent | e3353a0175fb27bc2967c3df78b8be1c0615b21d (diff) | |
download | CMake-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/CPack')
-rw-r--r-- | Source/CPack/cmCPackGeneratorFactory.h | 3 | ||||
-rw-r--r-- | Source/CPack/cmCPackLog.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGeneratorFactory.h b/Source/CPack/cmCPackGeneratorFactory.h index 7f633e4..972f0f7 100644 --- a/Source/CPack/cmCPackGeneratorFactory.h +++ b/Source/CPack/cmCPackGeneratorFactory.h @@ -22,6 +22,9 @@ public: cmCPackGeneratorFactory(); ~cmCPackGeneratorFactory(); + cmCPackGeneratorFactory(const cmCPackGeneratorFactory&) = delete; + cmCPackGeneratorFactory& operator=(const cmCPackGeneratorFactory&) = delete; + //! Get the generator cmCPackGenerator* NewGenerator(const std::string& name); void DeleteGenerator(cmCPackGenerator* gen); diff --git a/Source/CPack/cmCPackLog.h b/Source/CPack/cmCPackLog.h index 8e99221..65281e3 100644 --- a/Source/CPack/cmCPackLog.h +++ b/Source/CPack/cmCPackLog.h @@ -26,6 +26,9 @@ public: cmCPackLog(); ~cmCPackLog(); + cmCPackLog(const cmCPackLog&) = delete; + cmCPackLog& operator=(const cmCPackLog&) = delete; + enum __log_tags { NOTAG = 0, |