Make StructAtOffset take a pointer
Is safer.
diff --git a/src/hb-ot-layout-gsub-private.hh b/src/hb-ot-layout-gsub-private.hh
index ba933de..ccc51e7 100644
--- a/src/hb-ot-layout-gsub-private.hh
+++ b/src/hb-ot-layout-gsub-private.hh
@@ -586,7 +586,7 @@
{
unsigned int offset = get_offset ();
if (unlikely (!offset)) return Null(SubstLookupSubTable);
- return StructAtOffset<SubstLookupSubTable> (*this, offset);
+ return StructAtOffset<SubstLookupSubTable> (this, offset);
}
inline bool apply (hb_apply_context_t *context) const;
@@ -916,7 +916,7 @@
if (unlikely (!Extension::sanitize (context))) return false;
unsigned int offset = get_offset ();
if (unlikely (!offset)) return true;
- return StructAtOffset<SubstLookupSubTable> (*this, offset).sanitize (context);
+ return StructAtOffset<SubstLookupSubTable> (this, offset).sanitize (context);
}
inline bool ExtensionSubst::is_reverse (void) const