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

Return ptr<const M> not ptr<const M>&

parent 73a30ea5
Branches
No related merge requests found
......@@ -89,7 +89,7 @@ void MatchVector::append(const boost::shared_ptr<MatchData> &m)
matches_.push_back(boost::shared_ptr<Match>(new Match(m)));
}
const boost::shared_ptr<const Match>& MatchVector::submatch(size_t idx) const {
const boost::shared_ptr<const Match> MatchVector::submatch(size_t idx) const {
if (idx + 1< matches_.size() || idx == 0) {
return matches_[idx - 1];
} else {
......
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