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

Convert GameList col enum to enum class #9620

Merged

Conversation

Dentomologist
Copy link
Contributor

Also adds a couple lambdas and using directives to reduce visual noise.

@Dentomologist Dentomologist force-pushed the convert_gamelist_col_to_enum_class branch from 5346a19 to cd088d2 Compare April 1, 2021 20:54
@Dentomologist Dentomologist force-pushed the convert_gamelist_col_to_enum_class branch from cd088d2 to b98077b Compare April 2, 2021 00:18
hor_header->setSectionResizeMode(static_cast<int>(column), mode);
};
{
using column = GameListModel::Column;
Copy link
Member

Choose a reason for hiding this comment

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

Given this is a type alias, it should still be cased like This

Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure it could be just using GameListModel::Column in that case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Source/Core/DolphinQt/GameList/GameList.cpp Outdated Show resolved Hide resolved
Source/Core/DolphinQt/GameList/GameList.cpp Outdated Show resolved Hide resolved
Source/Core/DolphinQt/GameList/GameList.cpp Outdated Show resolved Hide resolved
@Dentomologist Dentomologist force-pushed the convert_gamelist_col_to_enum_class branch 2 times, most recently from 9a21353 to f9ac26d Compare April 2, 2021 02:08
@Dentomologist Dentomologist force-pushed the convert_gamelist_col_to_enum_class branch from f9ac26d to 601dcfa Compare April 2, 2021 16:56
@leoetlino leoetlino merged commit a1ee6ac into dolphin-emu:master Apr 6, 2021
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants