1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibLocale: Avoid unnecessary HashMap copy

This commit is contained in:
Ben Wiederhake 2023-05-13 21:11:24 +02:00 committed by Jelle Raaijmakers
parent 362773d4a6
commit 3cc98a32cf

View file

@ -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);