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

Review/daschauer/gh11260 #85

Merged
merged 3 commits into from
May 15, 2023

Conversation

Swiftb0y
Copy link

No description provided.

Copy link
Owner

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

Thank you, I will add the changes manual.

Comment on lines +903 to +909
auto colorFromConfig = [this, &hotcueColorPalette](const ConfigKey& configKey) {
int colorIndex = m_pConfig->getValue(configKey, -1);
if (colorIndex < 0 || colorIndex >= hotcueColorPalette.size()) {
return hotcueColorPalette.defaultColor();
}
return hotcueColorPalette.at(colorIndex);
};
Copy link
Owner

Choose a reason for hiding this comment

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

I don't see a particular reason that this is a lambda. This can easily become a normal member function to make find-able and to follow the normal pattern for named functions.

@daschuer daschuer merged commit 2851f5b into daschuer:gh11260 May 15, 2023
@Swiftb0y Swiftb0y deleted the review/daschauer/gh11260 branch May 15, 2023 18:45
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.

2 participants