diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-06 00:46:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-06 00:46:39 -0700 |
commit | 3473c63ad94756d6f79ddd5c48813e79d87429ca (patch) | |
tree | 9825e9a1c4fecf3f52697364bae17d7572bf5cdf /028call_reply.cc | |
parent | ce9616a77fc4e1c22e913308c8ea55ef05203211 (diff) | |
download | mu-3473c63ad94756d6f79ddd5c48813e79d87429ca.tar.gz |
2931 - be explicit about making copies
Diffstat (limited to '028call_reply.cc')
-rw-r--r-- | 028call_reply.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |