summaryrefslogtreecommitdiff
path: root/src/parse/token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/token.cpp')
-rw-r--r--src/parse/token.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/parse/token.cpp b/src/parse/token.cpp
index 69b952cc..c7d11d03 100644
--- a/src/parse/token.cpp
+++ b/src/parse/token.cpp
@@ -244,11 +244,10 @@ enum eTokenType Token::typefromstr(const ::std::string& s)
{
if(s == "")
return TOK_NULL;
- #define _(t) else if( s == #t ) return t;
+ #define _(t) if( s == #t ) return t;
#include "eTokenType.enum.h"
#undef _
- else
- return TOK_NULL;
+ return TOK_NULL;
}
struct EscapedString {