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 /027call_ingredient.cc | |
parent | ce9616a77fc4e1c22e913308c8ea55ef05203211 (diff) | |
download | mu-3473c63ad94756d6f79ddd5c48813e79d87429ca.tar.gz |
2931 - be explicit about making copies
Diffstat (limited to '027call_ingredient.cc')
-rw-r--r-- | 027call_ingredient.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/027call_ingredient.cc b/027call_ingredient.cc index 21f9f7ff..739815ed 100644 --- a/027call_ingredient.cc +++ b/027call_ingredient.cc @@ -30,7 +30,7 @@ next_ingredient_to_process = 0; :(before "End Call Housekeeping") for (int i = 0; i < SIZE(ingredients); ++i) { current_call().ingredient_atoms.push_back(ingredients.at(i)); - reagent ingredient = call_instruction.ingredients.at(i); + reagent/*copy*/ ingredient = call_instruction.ingredients.at(i); // End Compute Call Ingredient current_call().ingredients.push_back(ingredient); } @@ -51,7 +51,7 @@ case NEXT_INGREDIENT: { case NEXT_INGREDIENT: { assert(!Current_routine->calls.empty()); if (current_call().next_ingredient_to_process < SIZE(current_call().ingredient_atoms)) { - reagent product = current_instruction().products.at(0); + reagent/*copy*/ product = current_instruction().products.at(0); // End Preprocess NEXT_INGREDIENT product if (current_recipe_name() == "main") { // no ingredient types since the call might be implicit; assume ingredients are always strings |