From e9f4298418c1ae10851e50c3c717a699ec1f0a4c Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 19 Feb 2023 21:54:45 +0100 Subject: [PATCH] Fix gcc10 compat --- scripts/emoji_codegen.py | 2 +- src/emoji/Provider.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"),