mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
This commit is contained in:
committed by
Brad King
parent
e3353a0175
commit
ae5e97a005
@@ -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);
|
||||
|
||||
@@ -26,6 +26,9 @@ public:
|
||||
cmCPackLog();
|
||||
~cmCPackLog();
|
||||
|
||||
cmCPackLog(const cmCPackLog&) = delete;
|
||||
cmCPackLog& operator=(const cmCPackLog&) = delete;
|
||||
|
||||
enum __log_tags
|
||||
{
|
||||
NOTAG = 0,
|
||||
|
||||
Reference in New Issue
Block a user