From c10f22905c9a465599e2485914f4537a7be5f1cd Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 23 Jan 2024 00:06:16 +0100 Subject: [PATCH] Fix emoji categories being empty outside English locale --- indra/newview/llfloateremojipicker.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/indra/newview/llfloateremojipicker.cpp b/indra/newview/llfloateremojipicker.cpp index 9165e8ff72..9ac26821ae 100644 --- a/indra/newview/llfloateremojipicker.cpp +++ b/indra/newview/llfloateremojipicker.cpp @@ -551,10 +551,9 @@ void LLFloaterEmojiPicker::fillEmojis(bool fromResize) for (const LLEmojiGroup& group : groups) { // List all categories in group - for (std::string category : group.Categories) // Filter not working properly + for (const std::string& category : group.Categories) { // List all emojis in category - LLStringUtil::toLower(category); // Filter not working properly const LLEmojiDictionary::cat2descrs_map_t::const_iterator& item = category2Descr.find(category); if (item != category2Descr.end()) { @@ -566,10 +565,9 @@ void LLFloaterEmojiPicker::fillEmojis(bool fromResize) else { // List all categories in the selected group - for (std::string category : groups[sSelectedGroupIndex].Categories) // Filter not working properly + for (const std::string& category : groups[sSelectedGroupIndex].Categories) { // List all emojis in category - LLStringUtil::toLower(category); // Filter not working properly const LLEmojiDictionary::cat2descrs_map_t::const_iterator& item = category2Descr.find(category); if (item != category2Descr.end()) {