From 8516082191f2aa371a69398c58f142ff01dcc03d Mon Sep 17 00:00:00 2001 From: moe-ka Date: Wed, 27 Feb 2019 19:26:19 +0000 Subject: [PATCH] fix lambda captures --- src/controllers/commands/CommandController.cpp | 2 +- src/providers/twitch/IrcMessageHandler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index e93a40c68..8d98a999a 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -212,7 +212,7 @@ QString CommandController::execCommand(const QString &textNoEmoji, if (getSettings()->inlineWhispers) { app->twitch.server->forEachChannel( - [&messagexD, &overrideFlags](ChannelPtr _channel) { + [&messagexD, overrideFlags](ChannelPtr _channel) { _channel->addMessage(messagexD, overrideFlags); }); } diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index 34e1d08f4..27df7cb8c 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -266,8 +266,8 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message) if (getSettings()->inlineWhispers) { app->twitch.server->forEachChannel( - [&_message, &overrideFlags](ChannelPtr channel) { - channel->addMessage(_message, overrideFlags); // + [&_message, overrideFlags](ChannelPtr channel) { + channel->addMessage(_message, overrideFlags); }); } }