diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index f795c8799..432a4d674 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -632,7 +632,7 @@ struct ArrayOf void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1) { as_array ().qsort (start, end); } - hb_success_t serialize (hb_serialize_context_t *c, unsigned items_len) + HB_NODISCARD bool serialize (hb_serialize_context_t *c, unsigned items_len) { TRACE_SERIALIZE (this); if (unlikely (!c->extend_min (*this))) return_trace (false); @@ -642,7 +642,7 @@ struct ArrayOf } template - hb_success_t serialize (hb_serialize_context_t *c, Iterator items) + HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items) { TRACE_SERIALIZE (this); unsigned count = items.len (); diff --git a/src/hb.hh b/src/hb.hh index 45df81d69..4d90e4d57 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -338,7 +338,6 @@ extern "C" void hb_free_impl(void *ptr); #else # define HB_NODISCARD #endif -#define hb_success_t HB_NODISCARD bool /* https://github.com/harfbuzz/harfbuzz/issues/1852 */ #if defined(__clang__) && !(defined(_AIX) && (defined(__IBMCPP__) || defined(__ibmxl__)))