[pango] [HB] Use SANITIZE_THIS() when applicable
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] [HB] Use SANITIZE_THIS() when applicable
- Date: Fri, 14 Aug 2009 22:43:15 +0000 (UTC)
commit 6e5affe549e571c4bfa46be48963001bcc1b3d74
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Aug 14 16:17:32 2009 -0400
[HB] Use SANITIZE_THIS() when applicable
pango/opentype/hb-open-type-private.hh | 6 +++---
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 23bab7b..f4ae19b 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]