Make BTTVEmotes fully conform and use QString instead of std::string

This commit is contained in:
Rasmus Karlsson
2018-06-07 13:09:08 +02:00
parent 93fe7adce7
commit 6906d1dc1c
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ void CompletionModel::refresh()
}
// Global: BTTV Global Emotes
std::vector<std::string> &bttvGlobalEmoteCodes = app->emotes->bttv.globalEmoteCodes;
std::vector<QString> &bttvGlobalEmoteCodes = app->emotes->bttv.globalEmoteCodes;
for (const auto &m : bttvGlobalEmoteCodes) {
this->addString(m, TaggedString::Type::BTTVGlobalEmote);
}
@@ -44,8 +44,8 @@ void CompletionModel::refresh()
}
// Channel-specific: BTTV Channel Emotes
std::vector<std::string> &bttvChannelEmoteCodes =
app->emotes->bttv.channelEmoteCodes[this->channelName.toStdString()];
std::vector<QString> &bttvChannelEmoteCodes =
app->emotes->bttv.channelEmoteCodes[this->channelName];
for (const auto &m : bttvChannelEmoteCodes) {
this->addString(m, TaggedString::Type::BTTVChannelEmote);
}