Use static constexpr for large class constants

This commit is contained in:
Behdad Esfahbod 2019-01-20 19:47:52 -05:00
parent 30ae62779f
commit c1cbbb9459
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ struct hb_map_t
hb_codepoint_t operator [] (unsigned int key) const hb_codepoint_t operator [] (unsigned int key) const
{ return get (key); } { return get (key); }
static const hb_codepoint_t INVALID = HB_MAP_VALUE_INVALID; static constexpr hb_codepoint_t INVALID = HB_MAP_VALUE_INVALID;
void clear () void clear ()
{ {

View File

@ -666,7 +666,7 @@ struct hb_set_t
return INVALID; return INVALID;
} }
static const hb_codepoint_t INVALID = HB_SET_VALUE_INVALID; static constexpr hb_codepoint_t INVALID = HB_SET_VALUE_INVALID;
/* /*
* Iterator implementation. * Iterator implementation.