refactor: Remove Emoji's EmojiMap with a vector (#4980)

This commit is contained in:
pajlada
2023-11-26 19:17:58 +01:00
committed by GitHub
parent 9f9739836f
commit 5b741a8eb6
7 changed files with 59 additions and 39 deletions
@@ -27,9 +27,11 @@ namespace {
}
}
void addEmojis(std::vector<EmoteItem> &out, const EmojiMap &map)
void addEmojis(std::vector<EmoteItem> &out,
const std::vector<EmojiPtr> &map)
{
map.each([&](const QString &, const std::shared_ptr<EmojiData> &emoji) {
for (const auto &emoji : map)
{
for (auto &&shortCode : emoji->shortCodes)
{
out.push_back(
@@ -40,7 +42,7 @@ namespace {
.providerName = "Emoji",
.isEmoji = true});
}
});
};
}
} // namespace