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

Finish renaming Viewer list to Chatter list #4974

Merged
merged 9 commits into from
Nov 20, 2023

Conversation

Mm2PL
Copy link
Collaborator

@Mm2PL Mm2PL commented Nov 20, 2023

Description

Closes #4640.

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

src/widgets/splits/Split.cpp Outdated Show resolved Hide resolved
src/widgets/splits/Split.cpp Outdated Show resolved Hide resolved
src/widgets/splits/Split.cpp Outdated Show resolved Hide resolved
@@ -1364,8 +1364,8 @@

HotkeyController::HotkeyMap actions{
{"delete",
[viewerDock](std::vector<QString>) -> QString {
viewerDock->close();
[chatterDock](std::vector<QString>) -> QString {
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 #1 is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]

Suggested change
[chatterDock](std::vector<QString>) -> QString {
[chatterDock](const std::vector<QString>&) -> QString {

@Mm2PL Mm2PL enabled auto-merge (squash) November 20, 2023 17:43
@Mm2PL Mm2PL merged commit 1a685d7 into master Nov 20, 2023
18 of 19 checks passed
@Mm2PL Mm2PL deleted the chore/finish_renaming_viewers_list_to_chatters_list branch November 20, 2023 17:59
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

item->setText(text);
item->setFont(getApp()->fonts->getFont(FontStyle::ChatMedium, 1.0));
return item;
};

auto addLabel = [this, formatListItemText, chattersList](QString label) {
auto formattedLabel = formatListItemText(label);
auto *formattedLabel = formatListItemText(label);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'label' is passed by value and only copied once; consider moving it to avoid unnecessary copies [performance-unnecessary-value-param]

Suggested change
auto *formattedLabel = formatListItemText(label);
auto *formattedLabel = formatListItemText(std::move(label));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viewer List should be renamed to Chatter List
2 participants