summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-14 16:17:32 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-14 16:17:32 -0400
commit6e5affe549e571c4bfa46be48963001bcc1b3d74 (patch)
treec81586602751dbc5157c543ce3c07181e6bf32fc
parent578e321d3b5a08b86e6f1576f09973a94924e448 (diff)
downloadpango-6e5affe549e571c4bfa46be48963001bcc1b3d74.tar.gz
[HB] Use SANITIZE_THIS() when applicable
-rw-r--r--pango/opentype/hb-open-type-private.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh
index 23bab7b4..f4ae19ba 100644
--- a/pango/opentype/hb-open-type-private.hh
+++ b/pango/opentype/hb-open-type-private.hh
@@ -426,21 +426,21 @@ struct GenericOffsetTo : OffsetType
inline bool sanitize (SANITIZE_ARG_DEF, const void *base) {
SANITIZE_DEBUG ();
- if (!SANITIZE_OBJ (*this)) return false;
+ if (!SANITIZE_SELF ()) return false;
unsigned int offset = *this;
if (HB_UNLIKELY (!offset)) return true;
return SANITIZE (CAST(Type, *DECONST_CHARP(base), offset)) || NEUTER (DECONST_CAST(OffsetType,*this,0), 0);
}
inline bool sanitize (SANITIZE_ARG_DEF, const void *base, const void *base2) {
SANITIZE_DEBUG ();
- if (!SANITIZE_OBJ (*this)) return false;
+ if (!SANITIZE_SELF ()) return false;
unsigned int offset = *this;
if (HB_UNLIKELY (!offset)) return true;
return SANITIZE_BASE (CAST(Type, *DECONST_CHARP(base), offset), base2) || NEUTER (DECONST_CAST(OffsetType,*this,0), 0);
}
inline bool sanitize (SANITIZE_ARG_DEF, const void *base, unsigned int user_data) {
SANITIZE_DEBUG ();
- if (!SANITIZE_OBJ (*this)) return false;
+ if (!SANITIZE_SELF ()) return false;
unsigned int offset = *this;
if (HB_UNLIKELY (!offset)) return true;
return SANITIZE_BASE (CAST(Type, *DECONST_CHARP(base), offset), user_data) || NEUTER (DECONST_CAST(OffsetType,*this,0), 0);