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
@@ -141,6 +141,9 @@ struct cmFortranParser_s
|
||||
std::set<std::string> defines, cmFortranSourceInfo& info);
|
||||
~cmFortranParser_s();
|
||||
|
||||
cmFortranParser_s(const cmFortranParser_s&) = delete;
|
||||
cmFortranParser_s& operator=(const cmFortranParser_s&) = delete;
|
||||
|
||||
bool FindIncludeFile(const char* dir, const char* includeName,
|
||||
std::string& fileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user