diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2023-05-13 21:11:24 +0200 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-05-19 22:33:57 +0200 |
commit | 3cc98a32cfa4d24e46443807638a734eca9b47fb (patch) | |
tree | 628d9a09415dec13f651d2a3ec68efad30f861c1 /Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp | |
parent | 362773d4a6b44747ca27c400691c7e638bcfe5a5 (diff) | |
download | serenity-3cc98a32cfa4d24e46443807638a734eca9b47fb.zip |
LibLocale: Avoid unnecessary HashMap copy
Diffstat (limited to 'Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp index 92f5da0773..42ae2f990a 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp @@ -577,7 +577,7 @@ static constexpr Array<PluralCategory, @size@> @name@ { { PluralCategory::Other) generator.append("} };"); }; - for (auto [locale, rules] : cldr.locales) { + for (auto const& [locale, rules] : cldr.locales) { append_rules("cardinal"sv, locale, rules.cardinal_rules); append_rules("ordinal"sv, locale, rules.ordinal_rules); append_ranges(locale, rules.plural_ranges); |