fix: Fixed some compiler warnings (#5028)
* fix(C4101): unreferenced local variable * fix(C4189): variable initialized but not referenced * fix(C4305): narrowing from double to float * fix(C4457): declaration hiding function parameter * fix(C4456): shadowing declaration * fix(C4996): remove deprecations * chore: add changelog entry * fix: Remove more unused variables * fix: removed unused lambda captures * Update changelog entry --------- Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -2888,12 +2888,14 @@ void ChannelView::setInputReply(const MessagePtr &message)
|
||||
if (!message->replyThread)
|
||||
{
|
||||
// Message did not already have a thread attached, try to find or create one
|
||||
if (auto *tc =
|
||||
dynamic_cast<TwitchChannel *>(this->underlyingChannel_.get()))
|
||||
auto *tc =
|
||||
dynamic_cast<TwitchChannel *>(this->underlyingChannel_.get());
|
||||
if (!tc)
|
||||
{
|
||||
tc->getOrCreateThread(message);
|
||||
tc = dynamic_cast<TwitchChannel *>(this->channel_.get());
|
||||
}
|
||||
else if (auto *tc = dynamic_cast<TwitchChannel *>(this->channel_.get()))
|
||||
|
||||
if (tc)
|
||||
{
|
||||
tc->getOrCreateThread(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user