diff --git a/scripts/emoji_codegen.py b/scripts/emoji_codegen.py index d3935473..2de09fdb 100755 --- a/scripts/emoji_codegen.py +++ b/scripts/emoji_codegen.py @@ -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::Provider::emoji = { +constexpr const std::array emoji::Provider::emoji = { {%- for c in kwargs.items() %} // {{ c[0].capitalize() }} {%- for e in c[1] %} diff --git a/src/emoji/Provider.cpp b/src/emoji/Provider.cpp index d3a13458..31e808ce 100644 --- a/src/emoji/Provider.cpp +++ b/src/emoji/Provider.cpp @@ -16,7 +16,7 @@ null_literal(const char16_t (&lit)[N]) return std::u16string_view(lit, N); } -constexpr std::array emoji::Provider::emoji = { +constexpr const std::array emoji::Provider::emoji = { // People Emoji{null_literal(u"\U0001F600"), null_literal(u"grinning"),