Skip to content
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

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Aug 25, 2024

  • fix: remove deprecated getTwitchAbstract

`getTwitch` returns the same object and should be used instead
@pajlada pajlada marked this pull request as ready for review August 25, 2024 11:12
@pajlada pajlada force-pushed the chore/remove-get-twitch-abstract branch from 449c7a9 to ca06813 Compare August 25, 2024 11:12
@pajlada
Copy link
Member Author

pajlada commented Aug 25, 2024

image

@pajlada pajlada enabled auto-merge (squash) August 25, 2024 11:13
Copy link
Contributor

@github-actions github-actions bot left a 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) {
Copy link
Contributor

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]

Suggested change
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) {
Copy link
Contributor

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]

Suggested change
ChannelPtr channel) {
const ChannelPtr& channel) {

@pajlada pajlada merged commit ac88730 into master Aug 25, 2024
17 checks passed
@pajlada pajlada deleted the chore/remove-get-twitch-abstract branch August 25, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant