about summary refs log tree commit diff stats
path: root/057static_dispatch.cc
diff options
context:
space:
mode:
Diffstat (limited to '057static_dispatch.cc')
-rw-r--r--057static_dispatch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/057static_dispatch.cc b/057static_dispatch.cc
index 8b5fdea2..a4f230b9 100644
--- a/057static_dispatch.cc
+++ b/057static_dispatch.cc
@@ -50,7 +50,7 @@ else {
 bool header_already_exists(const recipe& rr) {
   const vector<recipe_ordinal>& variants = get(Recipe_variants, rr.name);
   for (long long int i = 0; i < SIZE(variants); ++i) {
-    if (Recipe.find(variants.at(i)) != Recipe.end()
+    if (contains_key(Recipe, variants.at(i))
         && all_reagents_match(rr, get(Recipe, variants.at(i)))) {
       return true;
     }
@@ -83,7 +83,7 @@ string next_unused_recipe_name(const string& recipe_name) {
   for (long long int i = 2; ; ++i) {
     ostringstream out;
     out << recipe_name << '_' << i;
-    if (Recipe_ordinal.find(out.str()) == Recipe_ordinal.end())
+    if (!contains_key(Recipe_ordinal, out.str()))
       return out.str();
   }
 }