Skip to content
Snippets Groups Projects
Commit 40056899 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

No need for some methods to be virtual.

parent 7c60c9cb
Branches
No related merge requests found
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment