From c02478c4010d54acfaed0318a2c2c689b468e92e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 22 Oct 2016 16:27:36 -0700 Subject: 3558 --- html/057immutable.cc.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/057immutable.cc.html') diff --git a/html/057immutable.cc.html b/html/057immutable.cc.html index 305eaede..ac57964f 100644 --- a/html/057immutable.cc.html +++ b/html/057immutable.cc.html @@ -374,7 +374,7 @@ $error: 0 Transform.push_back(check_immutable_ingredients); // idempotent :(code) -void check_immutable_ingredients(recipe_ordinal r) { +void check_immutable_ingredients(const recipe_ordinal r) { // to ensure an address reagent isn't modified, it suffices to show that // a) we never write to its contents directly, // b) we never call 'put' or 'put-index' on it, and @@ -520,7 +520,7 @@ set<int> scan_contained_in_product_indices} } -bool is_modified_in_recipe(recipe_ordinal r, int ingredient_index, const recipe& caller) { +bool is_modified_in_recipe(const recipe_ordinal r, const int ingredient_index, const recipe& caller) { const recipe& callee = get(Recipe, r); if (!callee.has_header) { raise << maybe(caller.name) << "can't check mutability of ingredients in recipe " << callee.name << " because it uses 'next-ingredient' directly, rather than a recipe header.\n" << end(); -- cgit 1.4.1-2-gfad0