From 35d7044cf181f05b5044def46d3947d59af1dba9 Mon Sep 17 00:00:00 2001
From: Adam Wardynski <award@.(win7-laptop)>
Date: Thu, 21 Apr 2011 15:26:06 +0200
Subject: [PATCH] Return ptr<const M> not ptr<const M>&

---
 libwccl/values/matchvector.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libwccl/values/matchvector.cpp b/libwccl/values/matchvector.cpp
index d53c312..24b77b8 100644
--- a/libwccl/values/matchvector.cpp
+++ b/libwccl/values/matchvector.cpp
@@ -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 {
-- 
GitLab