From b3201c10c7494a551f7e81d016aaee442685f24f Mon Sep 17 00:00:00 2001 From: Adam Wardynski <award@.(B-4.4.46a)> Date: Thu, 9 Dec 2010 16:33:03 +0100 Subject: [PATCH] fix reference assignment to temporary --- libwccl/ops/functions/bool/predicates/pointagreement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libwccl/ops/functions/bool/predicates/pointagreement.cpp b/libwccl/ops/functions/bool/predicates/pointagreement.cpp index 07400ab..60ef77b 100644 --- a/libwccl/ops/functions/bool/predicates/pointagreement.cpp +++ b/libwccl/ops/functions/bool/predicates/pointagreement.cpp @@ -49,7 +49,7 @@ PointAgreement::BaseRetValPtr PointAgreement::apply_internal(const FunExecContex // don't bother checking t2 unless current t1_tag matches enough categories if (attribs->matching_categories(t1_tag) >= min_card) { foreach (const Corpus2::Lexeme& t2_lex, t2->lexemes()) { - Corpus2::Tag& intersection = t1_tag.get_masked(t2_lex.tag()); + Corpus2::Tag intersection = t1_tag.get_masked(t2_lex.tag()); // if the intersection matches enough categories we have agreement if (attribs->matching_categories(intersection) >= min_card) { return Predicate::True(context); -- GitLab