X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fkeyword.cc;h=84065ab4f6fd0093f621e0d87d3a351b9f027ab3;hb=6eeb079ba4ed77997316262c842b215016dfe1e7;hp=d854fbeecd324327f0e9d0dc8fb9df25a5e498d3;hpb=64313890b232c731d432e5b096f30bffc3f3756d;p=lilypond.git diff --git a/lily/keyword.cc b/lily/keyword.cc index d854fbeecd..84065ab4f6 100644 --- a/lily/keyword.cc +++ b/lily/keyword.cc @@ -19,7 +19,7 @@ Keyword_table::Keyword_table (Keyword_ent *tab) while (tab->name_) table_.push_back (*tab++); - table_.sort (tabcmp); + vector_sort (table_, tabcmp); } vsize @@ -30,6 +30,5 @@ Keyword_table::lookup (char const *s) const vsize idx = binary_search (table_, e, tabcmp); if (idx != VPOS) return table_[idx].tokcode_; - else - return VPOS; + return VPOS; }