Fix gcc10 compat

This commit is contained in:
Nicolas Werner 2023-02-19 21:54:45 +01:00
parent 920409e914
commit e9f4298418
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class Emoji(object):
def generate_qml_list(**kwargs):
entrycount = sum([len(c[1]) for c in kwargs.items()])
tmpl = Template('''
constexpr std::array<Emoji, {{ entrycount }} > emoji::Provider::emoji = {
constexpr const std::array<Emoji, {{ entrycount }} > emoji::Provider::emoji = {
{%- for c in kwargs.items() %}
// {{ c[0].capitalize() }}
{%- for e in c[1] %}

View file

@ -16,7 +16,7 @@ null_literal(const char16_t (&lit)[N])
return std::u16string_view(lit, N);
}
constexpr std::array<Emoji, 3681> emoji::Provider::emoji = {
constexpr const std::array<Emoji, 3681> emoji::Provider::emoji = {
// People
Emoji{null_literal(u"\U0001F600"),
null_literal(u"grinning"),