Key twitch emotes by QString instead of std::string

This commit is contained in:
Rasmus Karlsson 2018-06-07 12:36:06 +02:00
parent e8683c3e8e
commit 3bc7e2da8a
3 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ void TwitchEmotes::refresh(const std::shared_ptr<TwitchAccount> &user)
return; return;
} }
TwitchAccountEmoteData &emoteData = this->emotes[roomID.toStdString()]; TwitchAccountEmoteData &emoteData = this->emotes[roomID];
if (emoteData.filled) { if (emoteData.filled) {
qDebug() << "Already loaded for room id " << roomID; qDebug() << "Already loaded for room id " << roomID;

View file

@ -36,7 +36,7 @@ public:
bool filled = false; bool filled = false;
}; };
std::map<std::string, TwitchAccountEmoteData> emotes; std::map<QString, TwitchAccountEmoteData> emotes;
private: private:
// emote code // emote code

View file

@ -88,7 +88,7 @@ void EmotePopup::loadChannel(ChannelPtr _channel)
// fourtf: the entire emote manager needs to be refactored so there's no point in trying to // fourtf: the entire emote manager needs to be refactored so there's no point in trying to
// fix this pile of garbage // fix this pile of garbage
for (const auto &set : app->emotes->twitch.emotes[userID.toStdString()].emoteSets) { for (const auto &set : app->emotes->twitch.emotes[userID].emoteSets) {
// TITLE // TITLE
messages::MessageBuilder builder1; messages::MessageBuilder builder1;