summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-06-16 00:49:12 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-06-16 00:49:12 +0200
commitf8e6c9c53cfeeb422b70e476671fd1c30d4a9798 (patch)
treeec71d941cbba1d1d12a13328439c247a26dc6a7a /scripts
parentFix settings groups not being terminated properly on logout (diff)
downloadnheko-f8e6c9c53cfeeb422b70e476671fd1c30d4a9798.tar.xz
Speedup provider compilation
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/emoji_codegen.py2
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] %}