diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-16 00:49:12 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-16 00:49:12 +0200 |
commit | f8e6c9c53cfeeb422b70e476671fd1c30d4a9798 (patch) | |
tree | ec71d941cbba1d1d12a13328439c247a26dc6a7a /scripts | |
parent | Fix settings groups not being terminated properly on logout (diff) | |
download | nheko-f8e6c9c53cfeeb422b70e476671fd1c30d4a9798.tar.xz |
Speedup provider compilation
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/emoji_codegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/emoji_codegen.py b/scripts/emoji_codegen.py index f54b03d0..a0758454 100755 --- a/scripts/emoji_codegen.py +++ b/scripts/emoji_codegen.py @@ -14,7 +14,7 @@ class Emoji(object): def generate_qml_list(**kwargs): tmpl = Template(''' -const QVector<Emoji> emoji::Provider::emoji = { +const std::array<Emoji, {{ sum([len(c[1]) for c in kwargs.items()]) }}> emoji::Provider::emoji = { {%- for c in kwargs.items() %} // {{ c[0].capitalize() }} {%- for e in c[1] %} |