perf(util/name): use quick_cmp at name_pair_quick_cmp
This commit is contained in:
parent
cb203c3272
commit
bd52e58294
1 changed files with 2 additions and 2 deletions
|
@ -212,9 +212,9 @@ inline bool independent(name const & a, name const & b) {
|
|||
typedef pair<name, name> name_pair;
|
||||
struct name_pair_quick_cmp {
|
||||
int operator()(name_pair const & p1, name_pair const & p2) const {
|
||||
int r = cmp(p1.first, p2.first);
|
||||
int r = quick_cmp(p1.first, p2.first);
|
||||
if (r != 0) return r;
|
||||
return cmp(p1.second, p2.second);
|
||||
return quick_cmp(p1.second, p2.second);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue