diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-09-26 11:26:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-26 11:28:16 +0200 |
| commit | f3e69079eefa18407b110ff23df26f7711ebf7e5 (patch) | |
| tree | 4337766e47fc481b0f63ba1eeb481c8e1a3d9983 /scripts | |
| parent | 41d9b6acca8775b5c04c0d415a3e4cd8af09cfe6 (diff) | |
Declare language tag lists as const.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/update-language-subtags | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update-language-subtags b/scripts/update-language-subtags index e533466d..5990085e 100755 --- a/scripts/update-language-subtags +++ b/scripts/update-language-subtags @@ -30,7 +30,7 @@ def escape(s): with open('src/language_tag_lists.cc', 'w') as f: for k, v in lists.items(): - print("static LanguageTag::SubtagData %s_list[] = {" % k, file=f) + print("static LanguageTag::SubtagData const %s_list[] = {" % k, file=f) for e in v: print('\t{ "%s", "%s" },' % (escape(e[0]), escape(e[1])), file=f) print("};", file=f) |
