summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Input/InputConfigDiag.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-02-28 04:58:03 -0500
committerLioncash <mathew1800@gmail.com>2017-02-28 05:07:21 -0500
commitd104e5e916b2a9e28f343dd1138ce910e639ae85 (patch)
treeedcb775719ddd879ae6dbdb0469df8fa21447fff /Source/Core/DolphinWX/Input/InputConfigDiag.cpp
parente375c966938bdc646373377bf0d4a2912044c71a (diff)
ExpressionParser: Convert parse state enum into an enum class
Diffstat (limited to 'Source/Core/DolphinWX/Input/InputConfigDiag.cpp')
-rw-r--r--Source/Core/DolphinWX/Input/InputConfigDiag.cpp8
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&)