fix build

This commit is contained in:
hemirt 2018-08-19 01:06:36 +02:00
parent ad711b4c15
commit 646268ab18
2 changed files with 15 additions and 17 deletions

View file

@ -150,7 +150,6 @@ struct Deserialize<chatterino::IgnorePhrase> {
QString(), false, false, QString(), false, false,
::chatterino::getSettings()->ignoredPhraseReplace.getValue(), true); ::chatterino::getSettings()->ignoredPhraseReplace.getValue(), true);
} }
};
QString _pattern; QString _pattern;
bool _isRegex = false; bool _isRegex = false;
@ -165,8 +164,7 @@ struct Deserialize<chatterino::IgnorePhrase> {
chatterino::rj::getSafe(value, "caseSensitive", _caseSens); chatterino::rj::getSafe(value, "caseSensitive", _caseSens);
return chatterino::IgnorePhrase(_pattern, _isRegex, _isBlock, _replace, _caseSens); return chatterino::IgnorePhrase(_pattern, _isRegex, _isBlock, _replace, _caseSens);
} }
}; // namespace Settings };
} // namespace Settings
} // namespace pajlada
} // namespace pajlada } // namespace pajlada

View file

@ -154,7 +154,7 @@ MessagePtr TwitchMessageBuilder::build()
this->appendTwitchEmote(ircMessage, emote, twitchEmotes); this->appendTwitchEmote(ircMessage, emote, twitchEmotes);
} }
} }
auto app = getApp();
const auto &phrases = app->ignores->phrases.getVector(); const auto &phrases = app->ignores->phrases.getVector();
auto removeEmotesInRange = [&twitchEmotes](int pos, int len) mutable { auto removeEmotesInRange = [&twitchEmotes](int pos, int len) mutable {
auto it = std::remove_if( auto it = std::remove_if(