diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2020-06-10 22:34:14 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2020-06-10 22:34:14 -0400 |
commit | 5e355c36fd2c4a7c8a0b99e3db7c963bd0973629 (patch) | |
tree | f45221a180106af8a33495cfa5792a3d333a6715 /scripts | |
parent | Remove unused QML file (diff) | |
download | nheko-5e355c36fd2c4a7c8a0b99e3db7c963bd0973629.tar.xz |
Fix build issue on some versions of clang
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/emoji_codegen.py | 4 |
1 files changed, 2 insertions, 2 deletions
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> 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> 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 %} }; |