From 4005689928b80b83f7bd17af37ff868e5c6a9e77 Mon Sep 17 00:00:00 2001 From: Adam Wardynski <award@.(B-4.4.46a)> Date: Tue, 19 Apr 2011 13:20:24 +0200 Subject: [PATCH] No need for some methods to be virtual. --- libwccl/values/match.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libwccl/values/match.h b/libwccl/values/match.h index 66161fa..6685ce3 100644 --- a/libwccl/values/match.h +++ b/libwccl/values/match.h @@ -71,7 +71,7 @@ public: * Check if the match is empty (matches nothing). Match objects themselves * are by definition empty, child classes are sometimes or always non-empty. */ - virtual bool empty() const { + bool empty() const { return match_->empty(); } @@ -79,7 +79,7 @@ public: * Getter for the first token matched. If the match is empty, must return * Nowhere. */ - virtual Position first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s) const { + Position first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s) const { return match_->first_token(s); } @@ -87,7 +87,7 @@ public: * Getter for the last token matched. If the match is empty, must return * Nowhere. */ - virtual Position last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s) const { + Position last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s) const { return match_->last_token(s); } -- GitLab