diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-09-09 22:41:47 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-09-09 22:41:47 -0400 |
| commit | 88c9c6d0861827ad476683afe01f19868d14cd38 (patch) | |
| tree | 1ba697fedeb132863290891a06653b2b83c623b1 /Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp | |
| parent | 38d05cd70f858c7c86e6ed2aab9bd0258157f1d0 (diff) | |
ExpressionParser: Make all control paths return a value in operator std::string
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp b/Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp index 40d61b0e77..bcb2c95a96 100644 --- a/Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp @@ -63,8 +63,6 @@ public: { switch (type) { - case TOK_INVALID: - return "Invalid"; case TOK_DISCARD: return "Discard"; case TOK_EOF: @@ -83,7 +81,11 @@ public: return "+"; case TOK_CONTROL: return "Device(" + (std::string)qualifier + ")"; + case TOK_INVALID: + break; } + + return "Invalid"; } }; |
