aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-28 10:23:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-28 10:23:34 +0000
commitc0227237033d48136df4e08209fbf03afd08c293 (patch)
treeb3c332ea909edcd9b93d8eedc2bb6b5ee6a84ce1
parent938e49aaa920e3a1badf61c66e7af914663d462c (diff)
downloadpaludis-c0227237033d48136df4e08209fbf03afd08c293.tar.gz
paludis-c0227237033d48136df4e08209fbf03afd08c293.tar.xz
Fix ref to temp
-rw-r--r--paludis/name.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/name.cc b/paludis/name.cc
index c31e978..7fce6ad 100644
--- a/paludis/name.cc
+++ b/paludis/name.cc
@@ -325,8 +325,8 @@ KeywordNameComparator::operator() (const std::string & a, const std::string & b)
{
char a_prefix('~' == a[0] || '-' == a[0] ? a[0] : '\0');
char b_prefix('~' == b[0] || '-' == b[0] ? b[0] : '\0');
- const std::string & a_keyword(a_prefix ? a.substr(1) : a);
- const std::string & b_keyword(b_prefix ? b.substr(1) : b);
+ const std::string a_keyword(a_prefix ? a.substr(1) : a);
+ const std::string b_keyword(b_prefix ? b.substr(1) : b);
if (a_keyword == b_keyword)
{