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

TASInputDlg: Minor changes #5196

Merged
merged 7 commits into from Apr 3, 2017
Merged

TASInputDlg: Minor changes #5196

merged 7 commits into from Apr 3, 2017

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Apr 2, 2017

Just minor clean-up related things.

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.

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.

This comment was marked as off-topic.

@degasus
Copy link
Member

degasus commented Apr 2, 2017

else LGTM

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.

This comment was marked as off-topic.

This comment was marked as off-topic.

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).
@Helios747 Helios747 merged commit 840e58c into dolphin-emu:master Apr 3, 2017
@lioncash lioncash deleted the tasdlg branch April 3, 2017 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants