提交 bd1318b8 编写于 作者: B Behdad Esfahbod

Use static constexpr for large class constants

上级 043b610f
...@@ -166,7 +166,7 @@ struct hb_map_t ...@@ -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 ()
{ {
......
...@@ -666,7 +666,7 @@ struct hb_set_t ...@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册