fix lambda captures

This commit is contained in:
moe-ka 2019-02-27 19:26:19 +00:00 committed by moka
parent 3ddac8b12a
commit 8516082191
2 changed files with 3 additions and 3 deletions

View file

@ -212,7 +212,7 @@ QString CommandController::execCommand(const QString &textNoEmoji,
if (getSettings()->inlineWhispers) if (getSettings()->inlineWhispers)
{ {
app->twitch.server->forEachChannel( app->twitch.server->forEachChannel(
[&messagexD, &overrideFlags](ChannelPtr _channel) { [&messagexD, overrideFlags](ChannelPtr _channel) {
_channel->addMessage(messagexD, overrideFlags); _channel->addMessage(messagexD, overrideFlags);
}); });
} }

View file

@ -266,8 +266,8 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message)
if (getSettings()->inlineWhispers) if (getSettings()->inlineWhispers)
{ {
app->twitch.server->forEachChannel( app->twitch.server->forEachChannel(
[&_message, &overrideFlags](ChannelPtr channel) { [&_message, overrideFlags](ChannelPtr channel) {
channel->addMessage(_message, overrideFlags); // channel->addMessage(_message, overrideFlags);
}); });
} }
} }