-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Add "pin" action to usercards and reply threads #4692
Conversation
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
@@ -62,6 +62,11 @@ ReplyThreadPopup::ReplyThreadPopup(bool closeAutomatically, QWidget *parent, | |||
} | |||
return ""; | |||
}}, | |||
{"pin", | |||
[this](std::vector<QString> /*arguments*/) -> QString { |
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 #1 is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
[this](std::vector<QString> /*arguments*/) -> QString { | |
[this](const std::vector<QString>& /*arguments*/) -> QString { |
@@ -231,6 +231,11 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent, | |||
this->underlyingChannel_->sendMessage(msg); | |||
return ""; | |||
}}, | |||
{"pin", | |||
[this](std::vector<QString> /*arguments*/) -> QString { |
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 #1 is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
[this](std::vector<QString> /*arguments*/) -> QString { | |
[this](const std::vector<QString>& /*arguments*/) -> QString { |
Description
Closes #4685