projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e57371
)
One fewer cmp() implementation...
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 29 Sep 2010 16:10:24 +0000
(12:10 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 29 Sep 2010 16:10:24 +0000
(12:10 -0400)
src/hb-ot-layout-common-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout-common-private.hh
b/src/hb-ot-layout-common-private.hh
index
5db8f67
..
e3adfe8
100644
(file)
--- a/
src/hb-ot-layout-common-private.hh
+++ b/
src/hb-ot-layout-common-private.hh
@@
-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) {