From 36b3862009c00ad922d68810173a69ac59723365 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 29 Sep 2010 12:10:24 -0400 Subject: [PATCH] One fewer cmp() implementation... --- src/hb-ot-layout-common-private.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 5db8f67..e3adfe8 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -57,8 +57,7 @@ template struct Record { inline int cmp (hb_tag_t a) const { - hb_tag_t b = tag; - return a < b ? -1 : a == b ? 0 : +1; + return tag.cmp (a); } inline bool sanitize (hb_sanitize_context_t *c, void *base) { -- 2.7.4