diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-06 13:22:16 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-06 13:22:30 -0800 |
commit | f3760b0f2828250b4b5fb1a52601fe6b11ff328f (patch) | |
tree | 69ec57c652ff823e92146281ba656e3eaba57eb7 /013update_operation.cc | |
parent | 12f304a333ecee6326a8111e0d8e1c494ee92087 (diff) | |
download | mu-f3760b0f2828250b4b5fb1a52601fe6b11ff328f.tar.gz |
2379 - further improvements to map operations
Commands run: $ sed -i 's/\([^. (]*\)\.find(\([^)]*\)) != [^.]*\.end()/contains_key(\1, \2)/g' 0[^0]*cc $ sed -i 's/\([^. (]*\)\.find(\([^)]*\)) == [^.]*\.end()/!contains_key(\1, \2)/g' 0[^0]*cc
Diffstat (limited to '013update_operation.cc')
-rw-r--r-- | 013update_operation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/013update_operation.cc b/013update_operation.cc index 13c7a3ad..a8feb065 100644 --- a/013update_operation.cc +++ b/013update_operation.cc @@ -10,7 +10,7 @@ void update_instruction_operations(recipe_ordinal r) { for (long long int index = 0; index < SIZE(get(Recipe, r).steps); ++index) { instruction& inst = get(Recipe, r).steps.at(index); if (inst.is_label) continue; - if (Recipe_ordinal.find(inst.name) == Recipe_ordinal.end()) { + if (!contains_key(Recipe_ordinal, inst.name)) { raise_error << maybe(get(Recipe, r).name) << "instruction " << inst.name << " has no recipe\n" << end(); return; } |