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:
Albert Astals Cid
2019-02-14 17:29:57 +01:00
committed by Brad King
parent e3353a0175
commit ae5e97a005
35 changed files with 126 additions and 1 deletions

View File

@@ -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);