From 5e355c36fd2c4a7c8a0b99e3db7c963bd0973629 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Wed, 10 Jun 2020 22:34:14 -0400 Subject: Fix build issue on some versions of clang --- scripts/emoji_codegen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/emoji_codegen.py b/scripts/emoji_codegen.py index 4dbb382d..b39feb34 100755 --- a/scripts/emoji_codegen.py +++ b/scripts/emoji_codegen.py @@ -16,7 +16,7 @@ def generate_code(emojis, category): const std::vector emoji::Provider::{{ category }} = { // {{ category.capitalize() }} {%- for e in emoji %} - {QString::fromUtf8("{{ e.code }}"), "{{ e.shortname }}", emoji::Emoji::Category::{{ category.capitalize() }}}, + Emoji{QString::fromUtf8("{{ e.code }}"), "{{ e.shortname }}", emoji::EmojiCategory::{{ category.capitalize() }}}, {%- endfor %} }; ''') @@ -30,7 +30,7 @@ const QVector emoji::Provider::emoji = { {%- for c in kwargs.items() %} // {{ c[0].capitalize() }} {%- for e in c[1] %} - {QString::fromUtf8("{{ e.code }}"), "{{ e.shortname }}", emoji::Emoji::Category::{{ c[0].capitalize() }}}, + Emoji{QString::fromUtf8("{{ e.code }}"), "{{ e.shortname }}", emoji::EmojiCategory::{{ c[0].capitalize() }}}, {%- endfor %} {%- endfor %} }; -- cgit 1.4.1