Use static constexpr for large class constants
This commit is contained in:
parent
043b610fa6
commit
bd1318b8cc
|
@ -166,7 +166,7 @@ struct hb_map_t
|
|||
hb_codepoint_t operator [] (unsigned int key) const
|
||||
{ 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 ()
|
||||
{
|
||||
|
|
|
@ -666,7 +666,7 @@ struct hb_set_t
|
|||
return INVALID;
|
||||
}
|
||||
|
||||
static const hb_codepoint_t INVALID = HB_SET_VALUE_INVALID;
|
||||
static constexpr hb_codepoint_t INVALID = HB_SET_VALUE_INVALID;
|
||||
|
||||
/*
|
||||
* Iterator implementation.
|
||||
|
|
Loading…
Reference in New Issue