One fewer cmp() implementation...
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 29 Sep 2010 16:10:24 +0000 (12:10 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 29 Sep 2010 16:10:24 +0000 (12:10 -0400)
src/hb-ot-layout-common-private.hh

index 5db8f67..e3adfe8 100644 (file)
@@ -57,8 +57,7 @@ template <typename Type>
 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) {