From 30fa2821c277df99a14089749313dfe2b541e2d0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 May 2010 14:28:18 -0400 Subject: [PATCH] Make internal method private --- src/hb-open-type-private.hh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a3e6f4d..786c08d 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -511,11 +511,6 @@ struct GenericArrayOf inline unsigned int get_size () const { return len.get_size () + len * Type::get_size (); } - inline bool sanitize_shallow (SANITIZE_ARG_DEF) { - TRACE_SANITIZE (); - return SANITIZE_SELF() && SANITIZE_ARRAY (this, Type::get_size (), len); - } - inline bool sanitize (SANITIZE_ARG_DEF) { TRACE_SANITIZE (); if (!likely (sanitize_shallow (SANITIZE_ARG))) return false; @@ -561,6 +556,13 @@ struct GenericArrayOf return true; } + private: + inline bool sanitize_shallow (SANITIZE_ARG_DEF) { + TRACE_SANITIZE (); + return SANITIZE_SELF() && SANITIZE_ARRAY (this, Type::get_size (), len); + } + + public: LenType len; /*Type array[VAR];*/ }; -- 2.7.4