-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove deprecated Application::getTwitchAbstract
#5560
Conversation
`getTwitch` returns the same object and should be used instead
449c7a9
to
ca06813
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
[&messagexD](ChannelPtr _channel) { | ||
_channel->addMessage(messagexD, MessageContext::Repost); | ||
}); | ||
app->getTwitch()->forEachChannel([&messagexD](ChannelPtr _channel) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: the parameter '_channel' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
app->getTwitch()->forEachChannel([&messagexD](ChannelPtr _channel) { | |
app->getTwitch()->forEachChannel([&messagexD](const ChannelPtr& _channel) { |
getApp()->getTwitchAbstract()->forEachChannel([&message, overrideFlags]( | ||
ChannelPtr channel) { | ||
getApp()->getTwitch()->forEachChannel([&message, overrideFlags]( | ||
ChannelPtr channel) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: the parameter 'channel' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
ChannelPtr channel) { | |
const ChannelPtr& channel) { |
getTwitchAbstract