From 5dfbc661bf0af536eef766e1f02c2276b0936295 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl>
Date: Wed, 16 Nov 2011 14:34:45 +0100
Subject: [PATCH] Relation returns references...

---
 libcorpus2/relation.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcorpus2/relation.h b/libcorpus2/relation.h
index 21cce25..e9fbcb6 100644
--- a/libcorpus2/relation.h
+++ b/libcorpus2/relation.h
@@ -84,12 +84,12 @@ public:
 	~Relation();
 
 	/// Accessor to "from" direction point
-	const boost::shared_ptr<const DirectionPoint> from() const {
+	const boost::shared_ptr<const DirectionPoint>& from() const {
 		return from_;
 	}
 
 	/// Accessor to "to" direction point
-	const boost::shared_ptr<const DirectionPoint> to() const {
+	const boost::shared_ptr<const DirectionPoint>& to() const {
 		return to_;
 	}
 
-- 
GitLab