From 3473c63ad94756d6f79ddd5c48813e79d87429ca Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 6 May 2016 00:46:39 -0700 Subject: 2931 - be explicit about making copies --- 028call_reply.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '028call_reply.cc') diff --git a/028call_reply.cc b/028call_reply.cc index 0f320aa0..5632668f 100644 --- a/028call_reply.cc +++ b/028call_reply.cc @@ -68,8 +68,8 @@ void check_types_of_reply_instructions(recipe_ordinal r) { break; } for (int i = 0; i < SIZE(caller_instruction.products); ++i) { - reagent lhs = reply_inst.ingredients.at(i); - reagent rhs = caller_instruction.products.at(i); + reagent/*copy*/ lhs = reply_inst.ingredients.at(i); + reagent/*copy*/ rhs = caller_instruction.products.at(i); // End Check RETURN Copy(lhs, rhs) if (!types_coercible(rhs, lhs)) { raise << maybe(callee.name) << reply_inst.name << " ingredient " << lhs.original_string << " can't be saved in " << rhs.original_string << '\n' << end(); -- cgit 1.4.1-2-gfad0