diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-19 22:10:35 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-19 22:10:35 -0700 |
commit | 6c96a437cef5140197660a0903309f11c364bf78 (patch) | |
tree | ea3b5a4d90100329eeb58a76773a500a6bee71da /060rewrite_literal_string.cc | |
parent | 5a820205054a9c45a9b4dc71aa1f26b4612ec76d (diff) | |
download | mu-6c96a437cef5140197660a0903309f11c364bf78.tar.gz |
3522
Diffstat (limited to '060rewrite_literal_string.cc')
-rw-r--r-- | 060rewrite_literal_string.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/060rewrite_literal_string.cc b/060rewrite_literal_string.cc index fa59db87..e8e0bc5a 100644 --- a/060rewrite_literal_string.cc +++ b/060rewrite_literal_string.cc @@ -39,10 +39,10 @@ void rewrite_literal_string_to_text(recipe_ordinal r) { trace(9991, "transform") << "--- rewrite literal strings in recipe " << caller.name << end(); if (contains_numeric_locations(caller)) return; vector<instruction> new_instructions; - for (int i = 0; i < SIZE(caller.steps); ++i) { + for (int i = 0; i < SIZE(caller.steps); ++i) { instruction& inst = caller.steps.at(i); if (recipes_taking_literal_strings.find(inst.name) == recipes_taking_literal_strings.end()) { - for (int j = 0; j < SIZE(inst.ingredients); ++j) { + for (int j = 0; j < SIZE(inst.ingredients); ++j) { if (!is_literal_text(inst.ingredients.at(j))) continue; instruction def; ostringstream ingredient_name; @@ -61,12 +61,12 @@ void rewrite_literal_string_to_text(recipe_ordinal r) { } bool contains_numeric_locations(const recipe& caller) { - for (int i = 0; i < SIZE(caller.steps); ++i) { + for (int i = 0; i < SIZE(caller.steps); ++i) { const instruction& inst = caller.steps.at(i); - for (int in = 0; in < SIZE(inst.ingredients); ++in) + for (int in = 0; in < SIZE(inst.ingredients); ++in) if (is_numeric_location(inst.ingredients.at(in))) return true; - for (int out = 0; out < SIZE(inst.products); ++out) + for (int out = 0; out < SIZE(inst.products); ++out) if (is_numeric_location(inst.products.at(out))) return true; } |