[buffer] HB_NODISCARD enlarge()

pull/2900/head
Behdad Esfahbod 4 years ago
parent 3f1998a065
commit d8028a0762
  1. 2
      src/hb-buffer.hh

@ -335,7 +335,7 @@ struct hb_buffer_t
/* Internal methods */
HB_INTERNAL bool move_to (unsigned int i); /* i is output-buffer index. */
HB_INTERNAL bool enlarge (unsigned int size);
HB_INTERNAL HB_NODISCARD bool enlarge (unsigned int size);
bool ensure (unsigned int size)
{ return likely (!size || size < allocated) ? true : enlarge (size); }

Loading…
Cancel
Save