mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
LibLocale: Avoid unnecessary HashMap copy
This commit is contained in:
parent
362773d4a6
commit
3cc98a32cf
Notes:
sideshowbarker
2024-07-16 19:59:49 +09:00
Author: https://github.com/BenWiederhake
Commit: 3cc98a32cf
Pull-request: https://github.com/SerenityOS/serenity/pull/18821
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue