Skip to content

Commit

Permalink
TASInputDlg: Use an enum for ID constants
Browse files Browse the repository at this point in the history
These are all related constants (and it doesn't make sense to allow
taking the address of them).
  • Loading branch information
lioncash committed Apr 3, 2017
1 parent 9dd2989 commit f3ab0fc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Source/Core/DolphinWX/TASInputDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ class TASInputDlg : public wxDialog
void CreateWiiLayout(int num);

private:
static constexpr int ID_C_STICK = 1001;
static constexpr int ID_MAIN_STICK = 1002;
static constexpr int ID_CC_L_STICK = 1003;
static constexpr int ID_CC_R_STICK = 1004;
enum : int
{
ID_C_STICK = 1001,
ID_MAIN_STICK = 1002,
ID_CC_L_STICK = 1003,
ID_CC_R_STICK = 1004
};

// Used in the context of creating controls on the fly
// This is greater than the last stick enum constant to
// prevent ID clashing in wx's event system.
int m_eleID = 1005;

struct Control
Expand Down

0 comments on commit f3ab0fc

Please sign in to comment.