From 96bed498d06b62bba36b2546ab2735faf349e1db Mon Sep 17 00:00:00 2001 From: fourtf Date: Sat, 27 Jul 2019 12:48:55 +0200 Subject: [PATCH] Fixed warnings in TwitchMessageBuilder --- src/providers/twitch/TwitchMessageBuilder.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index e6b02db63..9ba46c8f1 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -92,6 +92,8 @@ bool TwitchMessageBuilder::isIgnored() const if (this->channel->isBroadcaster()) return false; break; + case ShowIgnoredUsersMessages::Never: + break; } log("Blocking message because it's from blocked user {}", user.name); @@ -942,8 +944,8 @@ void TwitchMessageBuilder::appendTwitchEmote( return; } - auto start = correctPositions[coords.at(0).toInt()]; - auto end = correctPositions[coords.at(1).toInt()]; + auto start = correctPositions[coords.at(0).toUInt()]; + auto end = correctPositions[coords.at(1).toUInt()]; 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(); //// Try to parse custom cheermotes