From 0d1b3419a7bbfd18ab8fed1abd3a41dec11e8d97 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 26 Jun 2014 19:13:34 -0400 Subject: [PATCH] Minor: Use template parameter default values for OffsetTo --- src/hb-open-type-private.hh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a95afc20f..c4ec0edd4 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -696,8 +696,8 @@ struct FixedVersion * Use: (base+offset) */ -template -struct GenericOffsetTo : OffsetType +template +struct OffsetTo : OffsetType { inline const Type& operator () (const void *base) const { @@ -737,15 +737,12 @@ struct GenericOffsetTo : OffsetType } }; template -static inline const Type& operator + (const Base &base, const GenericOffsetTo &offset) { return offset (base); } +static inline const Type& operator + (const Base &base, const OffsetTo &offset) { return offset (base); } template -static inline Type& operator + (Base &base, GenericOffsetTo &offset) { return offset (base); } +static inline Type& operator + (Base &base, OffsetTo &offset) { return offset (base); } template -struct OffsetTo : GenericOffsetTo {}; - -template -struct LongOffsetTo : GenericOffsetTo {}; +struct LongOffsetTo : OffsetTo {}; /*