From 417db83de5673d26c7b997d27dcbcffda949fcd0 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 14 Nov 2015 11:22:01 -0800 Subject: 2436 --- 057static_dispatch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/057static_dispatch.cc b/057static_dispatch.cc index a4f230b9..082452ff 100644 --- a/057static_dispatch.cc +++ b/057static_dispatch.cc @@ -33,7 +33,7 @@ for (map >::iterator p = Recipe_variants.begin(); if (contains_key(Recipe_ordinal, result.name)) { const recipe_ordinal r = get(Recipe_ordinal, result.name); if ((!contains_key(Recipe, r) || get(Recipe, r).has_header) - && !header_already_exists(result)) { + && !variant_already_exists(result)) { string new_name = next_unused_recipe_name(result.name); put(Recipe_ordinal, new_name, Next_recipe_ordinal++); get(Recipe_variants, result.name).push_back(get(Recipe_ordinal, new_name)); @@ -47,7 +47,7 @@ else { } :(code) -bool header_already_exists(const recipe& rr) { +bool variant_already_exists(const recipe& rr) { const vector& variants = get(Recipe_variants, rr.name); for (long long int i = 0; i < SIZE(variants); ++i) { if (contains_key(Recipe, variants.at(i)) -- cgit 1.4.1-2-gfad0 summary refs log blame commit diff stats
blob: c20c517e32ab9fc8275e6307fcd54ece44762df0 (plain) (tree)
1
2
3
4
5
6
7
8
9