RE: make the RE_Matcher destructor non-virtual

Nobody overrides it.
This commit is contained in:
Max Kellermann 2020-02-04 10:44:49 +01:00
parent 8a74ebf2a9
commit cceb8a1b0c

View file

@ -174,12 +174,12 @@ protected:
int current_pos; int current_pos;
}; };
class RE_Matcher { class RE_Matcher final {
public: public:
RE_Matcher(); RE_Matcher();
explicit RE_Matcher(const char* pat); explicit RE_Matcher(const char* pat);
RE_Matcher(const char* exact_pat, const char* anywhere_pat); RE_Matcher(const char* exact_pat, const char* anywhere_pat);
virtual ~RE_Matcher(); ~RE_Matcher();
void AddPat(const char* pat); void AddPat(const char* pat);