[cff] Move initialization of a type to constructor

pull/3885/head
Behdad Esfahbod 2 years ago
parent 70a5cd53f6
commit f66415cdd1
  1. 12
      src/hb-cff-interp-common.hh

@ -284,16 +284,8 @@ struct UnsizedByteStr : UnsizedArrayOf <HBUINT8>
/* A byte string associated with the current offset and an error condition */
struct byte_str_ref_t
{
byte_str_ref_t () { init (); }
void init ()
{
str = hb_ubytes_t ();
offset = 0;
error = false;
}
void fini () {}
byte_str_ref_t ()
: str (), offset (0), error (false) {}
byte_str_ref_t (const hb_ubytes_t &str_, unsigned int offset_ = 0)
: str (str_), offset (offset_), error (false) {}

Loading…
Cancel
Save