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
TASInputDlg: Minor changes #5196
Conversation
wxGridSizer* const buttons_grid = new wxGridSizer(4); | ||
for (unsigned int i = 4; i < ArraySize(m_buttons); ++i) | ||
auto* const buttons_grid = new wxGridSizer(4); | ||
for (size_t i = 4; i < m_buttons.size(); ++i) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
wxGridSizer* const buttons_grid = new wxGridSizer(4); | ||
for (unsigned int i = 4; i < ArraySize(m_buttons); ++i) | ||
auto* const buttons_grid = new wxGridSizer(4); | ||
for (size_t i = 4; i < m_buttons.size(); ++i) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
else LGTM |
Source/Core/DolphinWX/TASInputDlg.h
Outdated
ID_CC_L_STICK = 1003, | ||
ID_CC_R_STICK = 1004 | ||
}; | ||
|
||
int m_eleID = 1005; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
As all UI controls are essentially constructed with new expressions, the type is already visible on the right-hand side, so repeating the type twice isn't necessary.
wxCommandEvent already stores the necessary data; the control object itself doesn't need to be retrieved and casted.
wxQueueEvent/wxPostEvent are useful when the event is being dispatched to another separate window, but aren't really necessary when the event will be handled by the same window it's dispatched from. GetEventHandler() is unnecessary here for the same reason. It's an event intended to be handled by the dialog itself.
These are all related constants (and it doesn't make sense to allow taking the address of them).
Just minor clean-up related things.