Fixed warnings in TwitchMessageBuilder

This commit is contained in:
fourtf
2019-07-27 12:48:55 +02:00
parent 2e8194ec1e
commit 96bed498d0
@@ -92,6 +92,8 @@ bool TwitchMessageBuilder::isIgnored() const
if (this->channel->isBroadcaster()) if (this->channel->isBroadcaster())
return false; return false;
break; break;
case ShowIgnoredUsersMessages::Never:
break;
} }
log("Blocking message because it's from blocked user {}", log("Blocking message because it's from blocked user {}",
user.name); user.name);
@@ -942,8 +944,8 @@ void TwitchMessageBuilder::appendTwitchEmote(
return; return;
} }
auto start = correctPositions[coords.at(0).toInt()]; auto start = correctPositions[coords.at(0).toUInt()];
auto end = correctPositions[coords.at(1).toInt()]; auto end = correctPositions[coords.at(1).toUInt()];
if (start >= end || start < 0 || end > this->originalMessage_.length()) if (start >= end || start < 0 || end > this->originalMessage_.length())
{ {
@@ -1193,7 +1195,7 @@ void TwitchMessageBuilder::appendChatterinoBadges()
} }
} }
Outcome TwitchMessageBuilder::tryParseCheermote(const QString &string) Outcome TwitchMessageBuilder::tryParseCheermote(const QString & /*string*/)
{ {
// auto app = getApp(); // auto app = getApp();
//// Try to parse custom cheermotes //// Try to parse custom cheermotes