From 2ceca93c97dcbfdc4c883c537a6a526ca28547fc Mon Sep 17 00:00:00 2001 From: Hung Dang Date: Sun, 6 Apr 2025 20:04:53 -0400 Subject: [PATCH] Fix all warning --- include/reflex/absmatcher.h | 5 ++--- include/reflex/matcher.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/reflex/absmatcher.h b/include/reflex/absmatcher.h index 33253375..6af1de06 100644 --- a/include/reflex/absmatcher.h +++ b/include/reflex/absmatcher.h @@ -583,7 +583,6 @@ class AbstractMatcher { } return *this; } - /// Returns nonzero capture index (i.e. true) if the entire input matches this matcher's pattern (and internally caches the true/false result to permit repeat invocations). inline size_t matches() /// @returns nonzero capture index if the entire input matched this matcher's pattern, zero (i.e. false) otherwise @@ -1691,7 +1690,7 @@ class PatternMatcher : public AbstractMatcher { delete pat_; } /// Assign a matcher, the underlying pattern object is shared (not deep copied). - virtual PatternMatcher& operator=(const PatternMatcher& matcher) ///< matcher with pattern to use (pattern may be shared) + PatternMatcher& operator=(const PatternMatcher& matcher) ///< matcher with pattern to use (pattern may be shared) { scan.init(this, Const::SCAN); find.init(this, Const::FIND); @@ -1842,7 +1841,7 @@ class PatternMatcher : public AbstractMatcher { delete pat_; } /// Assign a matcher, the underlying pattern string is shared (not deep copied). - virtual PatternMatcher& operator=(const PatternMatcher& matcher) ///< matcher with pattern to use (pattern may be shared) + PatternMatcher& operator=(const PatternMatcher& matcher) ///< matcher with pattern to use (pattern may be shared) { scan.init(this, Const::SCAN); find.init(this, Const::FIND); diff --git a/include/reflex/matcher.h b/include/reflex/matcher.h index 1d9658d4..ac5e0df4 100644 --- a/include/reflex/matcher.h +++ b/include/reflex/matcher.h @@ -109,7 +109,7 @@ class Matcher : public PatternMatcher { } using PatternMatcher::operator=; /// Assign a matcher, the underlying pattern string is shared (not deep copied). - virtual Matcher& operator=(const Matcher& matcher) ///< matcher to copy + Matcher& operator=(const Matcher& matcher) ///< matcher to copy { PatternMatcher::operator=(matcher); ded_ = matcher.ded_;