X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fhb-open-file-private.hh;h=250504ae20b3bd270b203cc99282a550b6a7bff8;hb=9470543a71d47a3f2c27fc9dbb1e20d03b9cd56e;hp=e2d4a2c237f91c23fad23361b3595cbf6cca266b;hpb=bbb5fd4f2e0d0c8cbdd407a39e58de3b40971c52;p=platform%2Fupstream%2Fharfbuzz.git diff --git a/src/hb-open-file-private.hh b/src/hb-open-file-private.hh index e2d4a2c..250504a 100644 --- a/src/hb-open-file-private.hh +++ b/src/hb-open-file-private.hh @@ -32,6 +32,8 @@ #include "hb-open-type-private.hh" +namespace OT { + /* * @@ -52,7 +54,7 @@ struct TTCHeader; typedef struct TableRecord { inline bool sanitize (hb_sanitize_context_t *c) { - TRACE_SANITIZE (); + TRACE_SANITIZE (this); return TRACE_RETURN (c->check_struct (this)); } @@ -101,7 +103,7 @@ typedef struct OffsetTable public: inline bool sanitize (hb_sanitize_context_t *c) { - TRACE_SANITIZE (); + TRACE_SANITIZE (this); return TRACE_RETURN (c->check_struct (this) && c->check_array (tables, TableRecord::static_size, numTables)); } @@ -129,7 +131,7 @@ struct TTCHeaderVersion1 inline const OpenTypeFontFace& get_face (unsigned int i) const { return this+table[i]; } inline bool sanitize (hb_sanitize_context_t *c) { - TRACE_SANITIZE (); + TRACE_SANITIZE (this); return TRACE_RETURN (table.sanitize (c, this)); } @@ -168,7 +170,7 @@ struct TTCHeader } inline bool sanitize (hb_sanitize_context_t *c) { - TRACE_SANITIZE (); + TRACE_SANITIZE (this); if (unlikely (!u.header.version.sanitize (c))) return TRACE_RETURN (false); switch (u.header.version.major) { case 2: /* version 2 is compatible with version 1 */ @@ -230,7 +232,7 @@ struct OpenTypeFontFile } inline bool sanitize (hb_sanitize_context_t *c) { - TRACE_SANITIZE (); + TRACE_SANITIZE (this); if (unlikely (!u.tag.sanitize (c))) return TRACE_RETURN (false); switch (u.tag) { case CFFTag: /* All the non-collection tags */ @@ -253,5 +255,7 @@ struct OpenTypeFontFile }; +} /* namespace OT */ + #endif /* HB_OPEN_FILE_PRIVATE_HH */