ExpressionParser: Make all control paths return a value in operator std::string
This commit is contained in:
parent
38d05cd70f
commit
88c9c6d086
|
@ -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";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue