Fix a memory leak
functionParser.h: add virtual destructor into abstract class. A memory leak has been found by using PVS-Studio analyzer. Analyzer warning: V599 The virtual destructor is not present, although the 'FunctionParser' class contains virtual functions. Closes #3402pull/3554/merge
parent
02bdd11700
commit
5861d416ea
|
@ -49,6 +49,7 @@ public:
|
|||
virtual void parse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT("")) = 0;
|
||||
void funcParse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT(""), const std::vector< std::pair<int, int> > * commentZones = NULL);
|
||||
bool isInZones(int pos2Test, const std::vector< std::pair<int, int> > & zones);
|
||||
virtual ~FunctionParser() {};
|
||||
protected:
|
||||
generic_string _id;
|
||||
generic_string _displayName;
|
||||
|
|
Loading…
Reference in New Issue