From d7bf473ef222ab420456ff155ffaa09bacb3a394 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 5 Aug 2011 18:18:21 -0400 Subject: [PATCH] Minor --- src/check-header-guards.sh | 1 - src/hb-open-type-private.hh | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/check-header-guards.sh b/src/check-header-guards.sh index 212b803..dc1893c 100755 --- a/src/check-header-guards.sh +++ b/src/check-header-guards.sh @@ -10,7 +10,6 @@ test "x$HBHEADERS" = x && HBHEADERS=`find . -maxdepth 1 -name 'hb*.h'` test "x$HBSOURCES" = x && HBSOURCES=`find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'` -echo $srcdir for x in $HBHEADERS $HBSOURCES; do test -f "$srcdir/$x" && x="$srcdir/$x" echo "$x" | grep '[^h]$' -q && continue; diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a6f1389..ae44ed7 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -338,12 +338,12 @@ struct Sanitizer */ -template class BEInt; +template struct BEInt; /* LONGTERMTODO: On machines allowing unaligned access, we can make the * following tighter by using byteswap instructions on ints directly. */ template -class BEInt +struct BEInt { public: inline void set (Type i) { hb_be_uint16_put (v,i); } @@ -353,7 +353,7 @@ class BEInt private: uint8_t v[2]; }; template -class BEInt +struct BEInt { public: inline void set (Type i) { hb_be_uint32_put (v,i); } @@ -691,8 +691,8 @@ struct SortedArrayOf : ArrayOf { template inline int search (const SearchType &x) const { - class Cmp { - public: static int cmp (const SearchType *a, const Type *b) { return b->cmp (*a); } + struct Cmp { + static int cmp (const SearchType *a, const Type *b) { return b->cmp (*a); } }; const Type *p = (const Type *) bsearch (&x, this->array, this->len, sizeof (this->array[0]), (hb_compare_func_t) Cmp::cmp); return p ? p - this->array : -1; -- 2.7.4