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

@@ -24,6 +24,10 @@ public:
cmDependsJavaParserHelper();
~cmDependsJavaParserHelper();
cmDependsJavaParserHelper(const cmDependsJavaParserHelper&) = delete;
cmDependsJavaParserHelper& operator=(const cmDependsJavaParserHelper&) =
delete;
int ParseString(const char* str, int verb);
int ParseFile(const char* file);