ExpressionParser: Make all control paths return a value in operator std::string

This commit is contained in:
Lioncash 2015-09-09 22:41:47 -04:00
parent 38d05cd70f
commit 88c9c6d086
1 changed files with 4 additions and 2 deletions

View File

@ -63,8 +63,6 @@ public:
{ {
switch (type) switch (type)
{ {
case TOK_INVALID:
return "Invalid";
case TOK_DISCARD: case TOK_DISCARD:
return "Discard"; return "Discard";
case TOK_EOF: case TOK_EOF:
@ -83,7 +81,11 @@ public:
return "+"; return "+";
case TOK_CONTROL: case TOK_CONTROL:
return "Device(" + (std::string)qualifier + ")"; return "Device(" + (std::string)qualifier + ")";
case TOK_INVALID:
break;
} }
return "Invalid";
} }
}; };