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

This commit is contained in:
Rasmus Karlsson
2018-06-07 13:09:33 +02:00
parent 6906d1dc1c
commit 63c38c02d0
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ void CompletionModel::refresh()
}
// Global: FFZ Global Emotes
std::vector<std::string> &ffzGlobalEmoteCodes = app->emotes->ffz.globalEmoteCodes;
std::vector<QString> &ffzGlobalEmoteCodes = app->emotes->ffz.globalEmoteCodes;
for (const auto &m : ffzGlobalEmoteCodes) {
this->addString(m, TaggedString::Type::FFZGlobalEmote);
}
@@ -51,8 +51,8 @@ void CompletionModel::refresh()
}
// Channel-specific: FFZ Channel Emotes
std::vector<std::string> &ffzChannelEmoteCodes =
app->emotes->ffz.channelEmoteCodes[this->channelName.toStdString()];
std::vector<QString> &ffzChannelEmoteCodes =
app->emotes->ffz.channelEmoteCodes[this->channelName];
for (const auto &m : ffzChannelEmoteCodes) {
this->addString(m, TaggedString::Type::FFZChannelEmote);
}