diff options
Diffstat (limited to 'Source/Core/DolphinWX/Input/InputConfigDiag.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Input/InputConfigDiag.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/Input/InputConfigDiag.cpp b/Source/Core/DolphinWX/Input/InputConfigDiag.cpp index 1cabf8be8a..2dbce7d21c 100644 --- a/Source/Core/DolphinWX/Input/InputConfigDiag.cpp +++ b/Source/Core/DolphinWX/Input/InputConfigDiag.cpp @@ -341,10 +341,10 @@ void ControlDialog::UpdateGUI() switch (control_reference->GetParseStatus()) { - case EXPRESSION_PARSE_SYNTAX_ERROR: + case ParseStatus::SyntaxError: m_error_label->SetLabel(_("Syntax error")); break; - case EXPRESSION_PARSE_NO_DEVICE: + case ParseStatus::NoDevice: m_error_label->SetLabel(_("Device not found")); break; default: @@ -404,8 +404,8 @@ bool ControlDialog::Validate() UpdateGUI(); - return (control_reference->GetParseStatus() == EXPRESSION_PARSE_SUCCESS || - control_reference->GetParseStatus() == EXPRESSION_PARSE_NO_DEVICE); + const auto parse_status = control_reference->GetParseStatus(); + return parse_status == ParseStatus::Success || parse_status == ParseStatus::NoDevice; } void InputConfigDialog::SetDevice(wxCommandEvent&) |
