From cceb8a1b0c7cc2cf3b85e221d50085f1f327220b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2020 10:44:49 +0100 Subject: [PATCH] RE: make the RE_Matcher destructor non-virtual Nobody overrides it. --- src/RE.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RE.h b/src/RE.h index f1a2317659..7ff6df112c 100644 --- a/src/RE.h +++ b/src/RE.h @@ -174,12 +174,12 @@ protected: int current_pos; }; -class RE_Matcher { +class RE_Matcher final { public: RE_Matcher(); explicit RE_Matcher(const char* pat); RE_Matcher(const char* exact_pat, const char* anywhere_pat); - virtual ~RE_Matcher(); + ~RE_Matcher(); void AddPat(const char* pat);