[cff] Move initialization of a type to constructor

This commit is contained in:
Behdad Esfahbod 2022-11-21 09:39:27 -07:00
parent 70a5cd53f6
commit f66415cdd1
1 changed files with 2 additions and 10 deletions

View File

@ -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) {}